Files
deploy-sourcegraph-docker/pure-docker/deploy-gitserver.sh
T
Stephen Gutekanst b5f8cb92a8 all: replace minio with sourcegraph/blobstore (#883)
* all: replace minio with sourcegraph/blobstore
* all: bump image tags for blobstore change
* pure-docker: update image tags (manually)

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2022-12-06 13:57:39 -07:00

30 lines
970 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Stores clones of repositories to perform Git operations.
#
# Disk: 200GB / persistent SSD
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: 3178/TCP 6060/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/gitserver-$1-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=gitserver-$1 \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=8g \
--hostname=gitserver-$1 \
-e GOMAXPROCS=4 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' \
-e 'GITHUB_BASE_URL=http://github-proxy:3180' \
-v $VOLUME:/data/repos \
index.docker.io/sourcegraph/gitserver:187572_2022-12-06_cbecc5321c7d@sha256:87642b2f0cccbdcd661e470c8f7aa6c022ab03065a2c8ab565afc4b8829a4531
echo "Deployed gitserver $1 service"