From 76ea424bd2e27193d9cb5368f8c4cebcdec8a72f Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Sun, 25 Jul 2021 20:34:38 +0800 Subject: [PATCH] pure-docker: move pure-docker to ./pure-docker (#454) This change will require additional actions for users using the pure-docker deployment option upgrading past 3.30.x - Please refer to https://docs.sourcegraph.com/admin/updates/pure_docker for more details. --- README.md | 101 +++++------------- RELEASING.md | 3 + pure-docker/README.md | 76 +++++++++++++ .../deploy-caddy.sh | 2 +- .../deploy-cadvisor.sh | 0 .../deploy-codeinsights-db.sh | 0 .../deploy-codeintel-db.sh | 0 .../deploy-frontend-internal.sh | 0 .../deploy-frontend.sh | 0 .../deploy-github-proxy.sh | 0 .../deploy-gitserver.sh | 0 .../deploy-grafana.sh | 4 +- .../deploy-jaeger.sh | 0 .../deploy-minio.sh | 0 .../deploy-pgsql.sh | 0 .../deploy-precise-code-intel-worker.sh | 0 .../deploy-prometheus.sh | 2 +- .../deploy-query-runner.sh | 0 .../deploy-redis-cache.sh | 0 .../deploy-redis-store.sh | 0 .../deploy-repo-updater.sh | 0 .../deploy-searcher.sh | 0 .../deploy-symbols.sh | 0 .../deploy-syntect-server.sh | 0 .../deploy-worker.sh | 0 .../deploy-zoekt-indexserver.sh | 0 .../deploy-zoekt-webserver.sh | 0 deploy.sh => pure-docker/deploy.sh | 4 + .../ensure-volume.sh | 0 .../init-jaeger-cassandra-schema.sh | 0 .../metrics-and-tracing.md | 0 replicas.sh => pure-docker/replicas.sh | 0 teardown.sh => pure-docker/teardown.sh | 4 + test/smoke-test.sh | 2 +- test/volume-config.sh | 4 +- tools/update-docker-tags.sh | 2 +- 36 files changed, 120 insertions(+), 84 deletions(-) create mode 100644 pure-docker/README.md rename deploy-caddy.sh => pure-docker/deploy-caddy.sh (92%) rename deploy-cadvisor.sh => pure-docker/deploy-cadvisor.sh (100%) rename deploy-codeinsights-db.sh => pure-docker/deploy-codeinsights-db.sh (100%) rename deploy-codeintel-db.sh => pure-docker/deploy-codeintel-db.sh (100%) rename deploy-frontend-internal.sh => pure-docker/deploy-frontend-internal.sh (100%) rename deploy-frontend.sh => pure-docker/deploy-frontend.sh (100%) rename deploy-github-proxy.sh => pure-docker/deploy-github-proxy.sh (100%) rename deploy-gitserver.sh => pure-docker/deploy-gitserver.sh (100%) rename deploy-grafana.sh => pure-docker/deploy-grafana.sh (85%) rename deploy-jaeger.sh => pure-docker/deploy-jaeger.sh (100%) rename deploy-minio.sh => pure-docker/deploy-minio.sh (100%) rename deploy-pgsql.sh => pure-docker/deploy-pgsql.sh (100%) rename deploy-precise-code-intel-worker.sh => pure-docker/deploy-precise-code-intel-worker.sh (100%) rename deploy-prometheus.sh => pure-docker/deploy-prometheus.sh (93%) rename deploy-query-runner.sh => pure-docker/deploy-query-runner.sh (100%) rename deploy-redis-cache.sh => pure-docker/deploy-redis-cache.sh (100%) rename deploy-redis-store.sh => pure-docker/deploy-redis-store.sh (100%) rename deploy-repo-updater.sh => pure-docker/deploy-repo-updater.sh (100%) rename deploy-searcher.sh => pure-docker/deploy-searcher.sh (100%) rename deploy-symbols.sh => pure-docker/deploy-symbols.sh (100%) rename deploy-syntect-server.sh => pure-docker/deploy-syntect-server.sh (100%) rename deploy-worker.sh => pure-docker/deploy-worker.sh (100%) rename deploy-zoekt-indexserver.sh => pure-docker/deploy-zoekt-indexserver.sh (100%) rename deploy-zoekt-webserver.sh => pure-docker/deploy-zoekt-webserver.sh (100%) rename deploy.sh => pure-docker/deploy.sh (95%) rename ensure-volume.sh => pure-docker/ensure-volume.sh (100%) rename init-jaeger-cassandra-schema.sh => pure-docker/init-jaeger-cassandra-schema.sh (100%) rename metrics-and-tracing.md => pure-docker/metrics-and-tracing.md (100%) rename replicas.sh => pure-docker/replicas.sh (100%) rename teardown.sh => pure-docker/teardown.sh (96%) diff --git a/README.md b/README.md index 2e7e4e1..8ad00b3 100644 --- a/README.md +++ b/README.md @@ -1,87 +1,36 @@ -# Pure-Docker Sourcegraph cluster deployment reference +# Sourcegraph with Docker Compose -[![sourcegraph: search](https://img.shields.io/badge/sourcegraph-search-brightgreen.svg)](https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegraph-docker) +[![sourcegraph: search](https://img.shields.io/badge/sourcegraph-search-brightgreen.svg)](https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegraph-docker) [![Build status](https://badge.buildkite.com/e60f9ffcafd68882d3db6fe5e33567e3a111d391a554d50d82.svg)](https://buildkite.com/sourcegraph/deploy-sourcegraph-docker) -There are two recommended ways to deploy Sourcegraph: +This repository is the deployment reference for [deploying Sourcegraph with Docker Compose](https://docs.sourcegraph.com/admin/install/docker-compose). -- [Single-machine Docker deployment](https://docs.sourcegraph.com/admin/install/docker) -- [Multi-machine Kubernetes deployment](https://docs.sourcegraph.com/admin/install/kubernetes_cluster) +> 🚨 IMPORTANT: When upgrading Sourcegraph, please check [upgrading docs](https://docs.sourcegraph.com/admin/updates/docker_compose) to check if any manual migrations are necessary. +> +> The `master` branch tracks development. Use the branch of this repository corresponding to the +> version of Sourcegraph you wish to deploy, e.g. `git checkout 3.19`. -But what if your organization wants a multi-machine deployment without using Kubernetes? What if you use a different container management platform, for example? This project aims to solve that, by providing a pure-Docker deployment option. +For product and [pricing](https://about.sourcegraph.com/pricing/) information, visit +[about.sourcegraph.com](https://about.sourcegraph.com) or [contact +us](https://about.sourcegraph.com/contact/sales) for more information. If you're just starting out, +we recommend running Sourcegraph as a [single Docker +container](https://docs.sourcegraph.com/#quickstart-guide) or using [Docker +Compose](https://docs.sourcegraph.com/admin/install/docker-compose). Migrating to Sourcegraph on +Kubernetes is easy later. -The goal is that anyone using a container management platform other than Kubernetes (Netflix's [Titus](https://netflix.github.io/titus/), Apache's [Mesos](http://mesos.apache.org/documentation/latest/docker-containerizer/), etc.) would be able to use this repository as a reference for how to deploy Sourcegraph. +## Is Docker Compose the right deployment type for me? -## Deploying +Please see [our docs](https://docs.sourcegraph.com/admin/install) for comparisons of deployment types and our resource estimator. -First clone the repository, then: +## Contributing -```bash -./deploy.sh -``` +We've made our deployment configurations open source to better serve our customers' needs. If there is anything we can do to make deploying Sourcegraph easier just [open an issue (in sourcegraph/sourcegraph)](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=deploy-sourcegraph-docker&title=%5Bdeploy-sourcegraph-docker%5D) or a pull request and we will respond promptly! -Visit http://localhost:3080 to visit the running Sourcegraph instance! - -## Tearing down the deployment - -```bash -./teardown.sh -``` - -## System topology - -To understand the system topology: - -1. Look at `deploy.sh` to get an overview of services. -2. Every service (`deploy-*.sh`) has documentation inline indicating: - - What the service does / provides. - - What ports the service exposes. - - What other services it talks to (see environment variables). - -## Service system requirements - -Every service (`deploy-*.sh`) documents inline what the system requirements are (CPU/Memory/Disk allocation). For example, [the frontend service](https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/f01b97a397138dd76e5f5ed45b2574b9a2e70cd1/deploy-frontend.sh#L6-L9). - -## Scaling / replicas - -To scale the cluster deployment, you will need to: - -1. Deploy more instances of `gitserver`, `indexed-search`, `searcher` and `symbols` services as desired. -2. [Configure the `frontend` and `frontend-internal` to communicate with the new instances.](https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/f01b97a397138dd76e5f5ed45b2574b9a2e70cd1/deploy-frontend.sh#L31-L34) -3. You're done! You do not need to configure or restart any other services. - -## Metrics and Tracing - -This deployment comes with metrics and tracing built-in. See [metrics and tracing](metrics-and-tracing.md) for details. - -## Configuring HTTPS - -See https://docs.sourcegraph.com/admin/nginx#nginx-for-other-sourcegraph-clusters-e-g-pure-docker - -## Configuring SSH cloning - -1. Ensure your **Site admin** > **External services** code host configuration is configured to use SSH. For example, by setting the [`gitURLType`](https://docs.sourcegraph.com/admin/site_config/all#giturltype-string-enum) field to `"ssh"`. You may still need to configure an access token or other codehost authentication method in order for Sourcegraph to discover your repositories. - -Alternatively, you may use the `OTHER` codehost type under **External services**, which allows you to directly specify Git repository URLs for cloning. - -2. Provide your `gitserver` instances with your SSH / Git configuration (usually just `.ssh/id_rsa`, `.ssh/id_rsa.pub`, and `.ssh/known_hosts` -- but you can also provide other files like `.netrc`, `.gitconfig`, etc. if needed) by mounting it into the `sourcegraph` users home directory in the `gitserver` containers. For example, by adding the following flag: - -``` --v ~/my-sourcegraph-ssh-config/.ssh:/home/sourcegraph/.ssh -``` - -All future Git cloning operations will use the credentials configured there. - -If you wish, you can test that cloning with your configuration is working by performing the clone in a gitserver container shell, e.g. first acquire shell access: - -``` -$ docker exec -it gitserver-0 sh -``` - -Then try cloning the repository: - -``` -$ git clone ssh://git@myhost.com/my/repo /tmp/my-repo -``` ## Questions & Issues -[Open an issue (in sourcegraph/sourcegraph)](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=deploy-sourcegraph-docker&template=deploy-sourcegraph-docker.md&title=%5Bdeploy-sourcegraph-docker%5D) or contact us (support@sourcegraph.com), we are happy to help! +[Open an issue (in sourcegraph/sourcegraph)](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=deploy-sourcegraph&template=deploy-sourcegraph.md&title=%5Bdeploy-sourcegraph%5D) or contact us (support@sourcegraph.com), we are happy to help! + +## Pure-Docker Sourcegraph cluster deployment reference + +What if your organization wants a multi-machine deployment without using Kubernetes? +What if you use a different container management platform, for example? +Anyone using a container management platform other than Kubernetes (Netflix's [Titus](https://netflix.github.io/titus/), Apache's [Mesos](http://mesos.apache.org/documentation/latest/docker-containerizer/), etc.) can use our [Pure-Docker Sourcegraph cluster deployment reference](./pure-docker/README.md) to deploy Sourcegraph. diff --git a/RELEASING.md b/RELEASING.md index 7599b0a..a425f33 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,5 +1,8 @@ # Release guide +**This is the guide for releasing the [Pure-Docker Sourcegraph deployment reference](./pure-docker/README.md).** +The docker-compose release is done entirely via the [Sourcegraph release tool](https://about.sourcegraph.com/handbook/engineering/distribution/tools/release). + ## Branching/tagging scheme Just like deploy-sourcegraph, we use version branches and version tags. We _additionally_ have a second set which is customer-replication branches and version tags: diff --git a/pure-docker/README.md b/pure-docker/README.md new file mode 100644 index 0000000..4f5faef --- /dev/null +++ b/pure-docker/README.md @@ -0,0 +1,76 @@ +# Pure-Docker Sourcegraph cluster deployment reference + +## Deploying + +First clone the repository, then: + +```bash +./deploy.sh +``` + +Visit http://localhost:3080 to visit the running Sourcegraph instance! + +## Tearing down the deployment + +```bash +./teardown.sh +``` + +## System topology + +To understand the system topology: + +1. Look at `deploy.sh` to get an overview of services. +2. Every service (`deploy-*.sh`) has documentation inline indicating: + - What the service does / provides. + - What ports the service exposes. + - What other services it talks to (see environment variables). + +## Service system requirements + +Every service (`deploy-*.sh`) documents inline what the system requirements are (CPU/Memory/Disk allocation). For example, [the frontend service](https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/f01b97a397138dd76e5f5ed45b2574b9a2e70cd1/deploy-frontend.sh#L6-L9). + +## Scaling / replicas + +To scale the cluster deployment, you will need to: + +1. Deploy more instances of `gitserver`, `indexed-search`, `searcher` and `symbols` services as desired. +2. [Configure the `frontend` and `frontend-internal` to communicate with the new instances.](https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/f01b97a397138dd76e5f5ed45b2574b9a2e70cd1/deploy-frontend.sh#L31-L34) +3. You're done! You do not need to configure or restart any other services. + +## Metrics and Tracing + +This deployment comes with metrics and tracing built-in. See [metrics and tracing](metrics-and-tracing.md) for details. + +## Configuring HTTPS + +See https://docs.sourcegraph.com/admin/nginx#nginx-for-other-sourcegraph-clusters-e-g-pure-docker + +## Configuring SSH cloning + +1. Ensure your **Site admin** > **External services** code host configuration is configured to use SSH. For example, by setting the [`gitURLType`](https://docs.sourcegraph.com/admin/site_config/all#giturltype-string-enum) field to `"ssh"`. You may still need to configure an access token or other codehost authentication method in order for Sourcegraph to discover your repositories. + +Alternatively, you may use the `OTHER` codehost type under **External services**, which allows you to directly specify Git repository URLs for cloning. + +2. Provide your `gitserver` instances with your SSH / Git configuration (usually just `.ssh/id_rsa`, `.ssh/id_rsa.pub`, and `.ssh/known_hosts` -- but you can also provide other files like `.netrc`, `.gitconfig`, etc. if needed) by mounting it into the `sourcegraph` users home directory in the `gitserver` containers. For example, by adding the following flag: + +``` +-v ~/my-sourcegraph-ssh-config/.ssh:/home/sourcegraph/.ssh +``` + +All future Git cloning operations will use the credentials configured there. + +If you wish, you can test that cloning with your configuration is working by performing the clone in a gitserver container shell, e.g. first acquire shell access: + +``` +$ docker exec -it gitserver-0 sh +``` + +Then try cloning the repository: + +``` +$ git clone ssh://git@myhost.com/my/repo /tmp/my-repo +``` +## Questions & Issues + +[Open an issue (in sourcegraph/sourcegraph)](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=deploy-sourcegraph-docker&template=deploy-sourcegraph-docker.md&title=%5Bdeploy-sourcegraph-docker%5D) or contact us (support@sourcegraph.com), we are happy to help! diff --git a/deploy-caddy.sh b/pure-docker/deploy-caddy.sh similarity index 92% rename from deploy-caddy.sh rename to pure-docker/deploy-caddy.sh index a0c1b2c..b58eb5a 100755 --- a/deploy-caddy.sh +++ b/pure-docker/deploy-caddy.sh @@ -31,6 +31,6 @@ docker run --detach \ -p 0.0.0.0:80:80 \ -p 0.0.0.0:443:443 \ -v $VOLUME:/caddy-storage \ - --mount type=bind,source="$(pwd)"/caddy/builtins/http.Caddyfile,target=/etc/caddy/Caddyfile \ + --mount type=bind,source="$(pwd)"/../caddy/builtins/http.Caddyfile,target=/etc/caddy/Caddyfile \ index.docker.io/caddy/caddy:alpine@sha256:ef2f47730caa12cb7d0ba944c048b8e48f029d5e0ff861840fa2b8f1868e1966 diff --git a/deploy-cadvisor.sh b/pure-docker/deploy-cadvisor.sh similarity index 100% rename from deploy-cadvisor.sh rename to pure-docker/deploy-cadvisor.sh diff --git a/deploy-codeinsights-db.sh b/pure-docker/deploy-codeinsights-db.sh similarity index 100% rename from deploy-codeinsights-db.sh rename to pure-docker/deploy-codeinsights-db.sh diff --git a/deploy-codeintel-db.sh b/pure-docker/deploy-codeintel-db.sh similarity index 100% rename from deploy-codeintel-db.sh rename to pure-docker/deploy-codeintel-db.sh diff --git a/deploy-frontend-internal.sh b/pure-docker/deploy-frontend-internal.sh similarity index 100% rename from deploy-frontend-internal.sh rename to pure-docker/deploy-frontend-internal.sh diff --git a/deploy-frontend.sh b/pure-docker/deploy-frontend.sh similarity index 100% rename from deploy-frontend.sh rename to pure-docker/deploy-frontend.sh diff --git a/deploy-github-proxy.sh b/pure-docker/deploy-github-proxy.sh similarity index 100% rename from deploy-github-proxy.sh rename to pure-docker/deploy-github-proxy.sh diff --git a/deploy-gitserver.sh b/pure-docker/deploy-gitserver.sh similarity index 100% rename from deploy-gitserver.sh rename to pure-docker/deploy-gitserver.sh diff --git a/deploy-grafana.sh b/pure-docker/deploy-grafana.sh similarity index 85% rename from deploy-grafana.sh rename to pure-docker/deploy-grafana.sh index 610b133..542d6af 100755 --- a/deploy-grafana.sh +++ b/pure-docker/deploy-grafana.sh @@ -19,8 +19,8 @@ docker run --detach \ --memory=1g \ -p 0.0.0.0:3370:3370 \ -v $VOLUME:/var/lib/grafana \ - -v $(pwd)/grafana/datasources:/sg_config_grafana/provisioning/datasources \ - -v $(pwd)/grafana/dashboards:/sg_grafana_additional_dashboards \ + -v $(pwd)/../grafana/datasources:/sg_config_grafana/provisioning/datasources \ + -v $(pwd)/../grafana/dashboards:/sg_grafana_additional_dashboards \ index.docker.io/sourcegraph/grafana:insiders@sha256:9ea6958ed176855ec33a5a3cc632eae257fd227fa3de1f987d96bf05c7e83d66 # Add the following lines above if you wish to use an auth proxy with Grafana: diff --git a/deploy-jaeger.sh b/pure-docker/deploy-jaeger.sh similarity index 100% rename from deploy-jaeger.sh rename to pure-docker/deploy-jaeger.sh diff --git a/deploy-minio.sh b/pure-docker/deploy-minio.sh similarity index 100% rename from deploy-minio.sh rename to pure-docker/deploy-minio.sh diff --git a/deploy-pgsql.sh b/pure-docker/deploy-pgsql.sh similarity index 100% rename from deploy-pgsql.sh rename to pure-docker/deploy-pgsql.sh diff --git a/deploy-precise-code-intel-worker.sh b/pure-docker/deploy-precise-code-intel-worker.sh similarity index 100% rename from deploy-precise-code-intel-worker.sh rename to pure-docker/deploy-precise-code-intel-worker.sh diff --git a/deploy-prometheus.sh b/pure-docker/deploy-prometheus.sh similarity index 93% rename from deploy-prometheus.sh rename to pure-docker/deploy-prometheus.sh index fa6d352..1c93d91 100755 --- a/deploy-prometheus.sh +++ b/pure-docker/deploy-prometheus.sh @@ -19,6 +19,6 @@ docker run --detach \ --memory=8g \ -p 0.0.0.0:9090:9090 \ -v $VOLUME:/prometheus \ - -v $(pwd)/prometheus:/sg_prometheus_add_ons \ + -v $(pwd)/../prometheus:/sg_prometheus_add_ons \ -e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \ index.docker.io/sourcegraph/prometheus:insiders@sha256:dc0a8dd404f43e7d2f8b664c3b6f5a448c62476526ff47a0fc3500c93aff0ba0 diff --git a/deploy-query-runner.sh b/pure-docker/deploy-query-runner.sh similarity index 100% rename from deploy-query-runner.sh rename to pure-docker/deploy-query-runner.sh diff --git a/deploy-redis-cache.sh b/pure-docker/deploy-redis-cache.sh similarity index 100% rename from deploy-redis-cache.sh rename to pure-docker/deploy-redis-cache.sh diff --git a/deploy-redis-store.sh b/pure-docker/deploy-redis-store.sh similarity index 100% rename from deploy-redis-store.sh rename to pure-docker/deploy-redis-store.sh diff --git a/deploy-repo-updater.sh b/pure-docker/deploy-repo-updater.sh similarity index 100% rename from deploy-repo-updater.sh rename to pure-docker/deploy-repo-updater.sh diff --git a/deploy-searcher.sh b/pure-docker/deploy-searcher.sh similarity index 100% rename from deploy-searcher.sh rename to pure-docker/deploy-searcher.sh diff --git a/deploy-symbols.sh b/pure-docker/deploy-symbols.sh similarity index 100% rename from deploy-symbols.sh rename to pure-docker/deploy-symbols.sh diff --git a/deploy-syntect-server.sh b/pure-docker/deploy-syntect-server.sh similarity index 100% rename from deploy-syntect-server.sh rename to pure-docker/deploy-syntect-server.sh diff --git a/deploy-worker.sh b/pure-docker/deploy-worker.sh similarity index 100% rename from deploy-worker.sh rename to pure-docker/deploy-worker.sh diff --git a/deploy-zoekt-indexserver.sh b/pure-docker/deploy-zoekt-indexserver.sh similarity index 100% rename from deploy-zoekt-indexserver.sh rename to pure-docker/deploy-zoekt-indexserver.sh diff --git a/deploy-zoekt-webserver.sh b/pure-docker/deploy-zoekt-webserver.sh similarity index 100% rename from deploy-zoekt-webserver.sh rename to pure-docker/deploy-zoekt-webserver.sh diff --git a/deploy.sh b/pure-docker/deploy.sh similarity index 95% rename from deploy.sh rename to pure-docker/deploy.sh index 2a15e9c..9e1cf1b 100755 --- a/deploy.sh +++ b/pure-docker/deploy.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash set -e + +root_dir="$(dirname "${BASH_SOURCE[0]}")" +cd "$root_dir" + source ./replicas.sh ./teardown.sh diff --git a/ensure-volume.sh b/pure-docker/ensure-volume.sh similarity index 100% rename from ensure-volume.sh rename to pure-docker/ensure-volume.sh diff --git a/init-jaeger-cassandra-schema.sh b/pure-docker/init-jaeger-cassandra-schema.sh similarity index 100% rename from init-jaeger-cassandra-schema.sh rename to pure-docker/init-jaeger-cassandra-schema.sh diff --git a/metrics-and-tracing.md b/pure-docker/metrics-and-tracing.md similarity index 100% rename from metrics-and-tracing.md rename to pure-docker/metrics-and-tracing.md diff --git a/replicas.sh b/pure-docker/replicas.sh similarity index 100% rename from replicas.sh rename to pure-docker/replicas.sh diff --git a/teardown.sh b/pure-docker/teardown.sh similarity index 96% rename from teardown.sh rename to pure-docker/teardown.sh index fd6cffe..2b8d6c5 100755 --- a/teardown.sh +++ b/pure-docker/teardown.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash set -e + +root_dir="$(dirname "${BASH_SOURCE[0]}")" +cd "$root_dir" + source ./replicas.sh docker rm -f cadvisor &> /dev/null || true & diff --git a/test/smoke-test.sh b/test/smoke-test.sh index cdb26c3..6a5042a 100755 --- a/test/smoke-test.sh +++ b/test/smoke-test.sh @@ -6,7 +6,7 @@ deploy_sourcegraph() { #Deploy sourcegraph if [[ "$TEST_TYPE" == "pure-docker-test" ]]; then ./test/volume-config.sh - ./deploy.sh + ./pure-docker/deploy.sh if [[ "$GIT_BRANCH" == *"customer-replica"* ]]; then # Expected number of containers on e.g. 3.18-customer-replica branch. diff --git a/test/volume-config.sh b/test/volume-config.sh index a5aa7c8..3bb654f 100755 --- a/test/volume-config.sh +++ b/test/volume-config.sh @@ -5,11 +5,11 @@ cd /deploy-sourcegraph-docker echo echo "creating deployment for volume directories" echo -./deploy.sh +./pure-docker/deploy.sh echo echo "tearing down deployment for volume directories" echo -./teardown.sh +./pure-docker/teardown.sh # Set permissions on volume directories. # # IMPORTANT: If these change, or a new service is introduced, it must be explicitly called out in diff --git a/tools/update-docker-tags.sh b/tools/update-docker-tags.sh index 5f83b62..2d4ca2c 100755 --- a/tools/update-docker-tags.sh +++ b/tools/update-docker-tags.sh @@ -2,7 +2,7 @@ set -e -root_dir="$(dirname "${BASH_SOURCE[0]}")/.." +root_dir="$(dirname "${BASH_SOURCE[0]}")" cd "$root_dir" CONSTRAINT=$1