-
Notifications
You must be signed in to change notification settings - Fork 573
Expand file tree
/
Copy pathdeploy-gitserver.sh
More file actions
28 lines (26 loc) · 918 Bytes
/
deploy-gitserver.sh
File metadata and controls
28 lines (26 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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' \
-v $VOLUME:/data/repos \
index.docker.io/sourcegraph/gitserver:187572_2022-12-06_cbecc5321c7d@sha256:87642b2f0cccbdcd661e470c8f7aa6c022ab03065a2c8ab565afc4b8829a4531
echo "Deployed gitserver $1 service"