mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
43 lines
1.3 KiB
Bash
Executable File
43 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
./teardown.sh
|
|
|
|
docker network create sourcegraph &> /dev/null || true
|
|
|
|
./deploy-cadvisor.sh
|
|
./deploy-github-proxy.sh
|
|
for i in $(seq 0 $(($NUM_GITSERVER - 1))); do ./deploy-gitserver.sh $i; done
|
|
./deploy-grafana.sh
|
|
./deploy-jaeger.sh
|
|
./deploy-precise-code-intel-worker.sh
|
|
./deploy-pgsql.sh
|
|
./deploy-codeintel-db.sh
|
|
./deploy-codeinsights-db.sh
|
|
./deploy-minio.sh
|
|
./deploy-prometheus.sh
|
|
./deploy-query-runner.sh
|
|
./deploy-redis-cache.sh
|
|
./deploy-redis-store.sh
|
|
./deploy-repo-updater.sh
|
|
./deploy-worker.sh
|
|
for i in $(seq 0 $(($NUM_SEARCHER - 1))); do ./deploy-searcher.sh $i; done
|
|
for i in $(seq 0 $(($NUM_SYMBOLS - 1))); do ./deploy-symbols.sh $i; done
|
|
./deploy-syntect-server.sh
|
|
for i in $(seq 0 $(($NUM_INDEXED_SEARCH - 1))); do ./deploy-zoekt-indexserver.sh $i; done
|
|
for i in $(seq 0 $(($NUM_INDEXED_SEARCH - 1))); do ./deploy-zoekt-webserver.sh $i; done
|
|
|
|
# Redis must be started before these.
|
|
./deploy-frontend-internal.sh
|
|
# Wait for frontend-internal to run migrations before starting remaining frontend containers
|
|
while [ "$(docker inspect sourcegraph-frontend-internal --format '{{.State.Health.Status}}')" != "healthy" ]
|
|
do
|
|
echo "waiting for internal frontend to start"
|
|
sleep 5
|
|
done
|
|
|
|
for i in $(seq 0 $(($NUM_FRONTEND - 1))); do ./deploy-frontend.sh $i; done
|
|
./deploy-caddy.sh
|
|
wait
|