From ae00d7d6609baafcf5187fea5099f752b0ef263a Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 7 Jan 2019 20:20:09 -0700 Subject: [PATCH] properly connect frontend services to indexed-search (zoekt) service Prior to this change the frontend failed to find the indexed-search service with errors such as: > Dial tcp: lookup indexed-search on 127.0.0.11:53: no such host This was due to the fact that `ZOEKT_HOST` defaults to `indexed-search:80`, which is correct for Kubernetes cluster deployments but not for pure-Docker ones. Setting the proper value here resolves this. --- deploy-frontend-internal.sh | 1 + deploy-frontend.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/deploy-frontend-internal.sh b/deploy-frontend-internal.sh index 8214989..2ef78ae 100755 --- a/deploy-frontend-internal.sh +++ b/deploy-frontend-internal.sh @@ -20,6 +20,7 @@ docker run --detach \ -e SEARCHER_URL=http://searcher-0:3181 \ -e SYMBOLS_URL=http://symbols-0:3184 \ -e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \ + -e ZOEKT_HOST=http://zoekt-webserver:6070 \ sourcegraph/frontend:3.0.0-alpha.8 echo "Deployed sourcegraph-frontend-internal service" \ No newline at end of file diff --git a/deploy-frontend.sh b/deploy-frontend.sh index 733dd4a..113e356 100755 --- a/deploy-frontend.sh +++ b/deploy-frontend.sh @@ -20,6 +20,7 @@ docker run --detach \ -e SEARCHER_URL=http://searcher-0:3181 \ -e SYMBOLS_URL=http://symbols-0:3184 \ -e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \ + -e ZOEKT_HOST=http://zoekt-webserver:6070 \ -p 127.0.0.1:3080:3080 \ sourcegraph/frontend:3.0.0-alpha.8