A POC for indexing public gitea instances https://explore.sapk.fr/
Go to file
Antoine GIRARD 17523a3c51
All checks were successful
continuous-integration/drone/push Build is passing
drone: fetch submodules
2019-11-07 22:22:14 +01:00
assets init 2019-11-07 22:04:13 +01:00
client init 2019-11-07 22:04:13 +01:00
models init 2019-11-07 22:04:13 +01:00
public init 2019-11-07 22:04:13 +01:00
vendor init 2019-11-07 22:04:13 +01:00
.dockerignore init 2019-11-07 22:04:13 +01:00
.drone.yml drone: fetch submodules 2019-11-07 22:22:14 +01:00
.gitignore init 2019-11-07 22:04:13 +01:00
.gitmodules init 2019-11-07 22:04:13 +01:00
api.go init 2019-11-07 22:04:13 +01:00
Dockerfile init 2019-11-07 22:04:13 +01:00
gitea.swagger.json init 2019-11-07 22:04:13 +01:00
go.mod add drone 2019-11-07 22:09:34 +01:00
go.sum init 2019-11-07 22:04:13 +01:00
log.go init 2019-11-07 22:04:13 +01:00
mage.go init 2019-11-07 22:04:13 +01:00
magefile.go add drone 2019-11-07 22:09:34 +01:00
main.go init 2019-11-07 22:04:13 +01:00
README.md init 2019-11-07 22:04:13 +01:00
repo.go init 2019-11-07 22:04:13 +01:00
robot.go init 2019-11-07 22:04:13 +01:00
tools.go init 2019-11-07 22:04:13 +01:00
web.go init 2019-11-07 22:04:13 +01:00

Explore

Use mage helper to run tasks:

go run -mod=vendor mage.go -l
go run -mod=vendor mage.go build
 -- OR --
alias m="go run -mod=vendor mage.go"
m -l

Start dev ES

docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.3.1

Start with DejaVu for debug

docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 -e discovery.type=single-node -e http.cors.enabled=true -e http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358 -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true docker.elastic.co/elasticsearch/elasticsearch-oss:7.3.1
docker run -d --rm --name dejavu -p 1358:1358 appbaseio/dejavu

Clear dev docker

docker stop dejavu elasticsearch && docker rm dejavu elasticsearch