Add images/ for webserver and indexserver used in the chart
These will initially push to the container registry for this project but will likely in future be pushed to another image repository that isn't GitLab.com for reliable access even if Gitlab.com is down.
How to test it
docker build -t zoekt-dynamic-indexserver -f images/Dockerfile.zoekt-dynamic-indexserver .
docker build -t zoekt-webserver -f images/Dockerfile.zoekt-webserver .
mkdir /tmp/zoekt-repos /tmp/zoekt-index && sudo chown 100:100 /tmp/zoekt-*
docker run -p 6060:6060 --name zoekt-dynamic-indexserver --rm -v /tmp/zoekt-repos:/data/repos -v /tmp/zoekt-index:/data/index zoekt-dynamic-indexserver
docker run -p 6070:6070 --name zoekt-webserver --rm -v /tmp/zoekt-index:/data/index zoekt-webserver
curl -XPOST -d '{"CloneUrl":"https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer.git","RepoId":2953390}' -H 'Content-Type: application/json' http://127.0.0.1:6060/index
- See search results
$ curl -XPOST -d '{"Q":"gitaly","RepoIDs":[2953390]}' 'http://127.0.0.1:6070/api/search' |jq . { "Result": { "ContentBytesLoaded": 58728, "IndexBytesLoaded": 441, "Crashes": 0, "Duration": 464177, "FileCount": 11, "ShardFilesConsidered": 0, "FilesConsidered": 11, "FilesLoaded": 11, "FilesSkipped": 0, "ShardsScanned": 1, "ShardsSkipped": 0, "ShardsSkippedFilter": 0, "MatchCount": 96, "NgramMatches": 116, "Wait": 18076, "RegexpsConsidered": 0, "FlushReason": 0, "Files": [ { "Score": 727.3157894736842, "Debug": "", "FileName": "git/gitaly.go", "Repository": "2953390", ...
Edited by Dylan Griffith