Files
deploy-sourcegraph-docker/pure-docker/deploy-symbols.sh
T
Dax McDonald fe3eb900f3 Revert "Merge branch 'release'" (#525)
This reverts commit 7f9cc4c4ce, reversing
changes made to d27e277608.
2021-08-18 17:11:21 -07:00

28 lines
805 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Backend for symbols operations.
#
# Disk: 128GB / non-persistent SSD
# Network: 100mbps
# Liveness probe: none
# Ports exposed to other Sourcegraph services: 3184/TCP 6060/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/symbols-$1-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=symbols-$1 \
--network=sourcegraph \
--restart=always \
--cpus=2 \
--memory=4g \
-e GOMAXPROCS=2 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e JAEGER_AGENT_HOST=jaeger \
-v $VOLUME:/mnt/cache \
index.docker.io/sourcegraph/symbols:insiders@sha256:566c40dd67bf7c61a27bce485daf78a2373cfb99633bfaf1714f54f18e947bf3
echo "Deployed symbols $1 service"