mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
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.
35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
# Rename the old ~/sourcegraph-docker/zoekt-shared-disk -> ~/sourcegraph-docker/zoekt-$1-shared-disk
|
|
# if it exists. This ensures we don't have to rebuild the search index from scratch.
|
|
if [ -e ~/sourcegraph-docker/zoekt-shared-disk ]
|
|
then mv ~/sourcegraph-docker/zoekt-shared-disk ~/sourcegraph-docker/zoekt-$1-shared-disk
|
|
fi
|
|
|
|
# Description: Backend for indexed text search operations.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 6072/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/zoekt-$1-shared-disk"
|
|
./ensure-volume.sh $VOLUME 100
|
|
docker run --detach \
|
|
--name=zoekt-indexserver-$1 \
|
|
--hostname=zoekt-indexserver-$1 \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=8 \
|
|
--memory=16g \
|
|
-e GOMAXPROCS=8 \
|
|
-e HOSTNAME=zoekt-webserver-$1:6070 \
|
|
-e SRC_FRONTEND_INTERNAL=http://sourcegraph-frontend-internal:3090 \
|
|
-v $VOLUME:/data/index \
|
|
index.docker.io/sourcegraph/search-indexer:insiders@sha256:eaaba3c9956d50a148c032cfeca57531d143359b3648f5ffbea8d3feb5cb5e81
|
|
|
|
echo "Deployed zoekt-indexserver $1 service"
|