forked from sourcegraph/deploy-sourcegraph-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-repo-updater.sh
More file actions
executable file
·28 lines (26 loc) · 947 Bytes
/
deploy-repo-updater.sh
File metadata and controls
executable file
·28 lines (26 loc) · 947 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: Handles repository metadata (not Git data) lookups and updates from external code hosts and other similar services.
#
# Disk: 128GB / non-persistent SSD
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: 3182/TCP 6060/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/repo-updater-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=repo-updater \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=4g \
-e GOMAXPROCS=1 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e JAEGER_AGENT_HOST=jaeger \
-e GITHUB_BASE_URL=http://github-proxy:3180 \
-v $VOLUME:/mnt/cache \
index.docker.io/sourcegraph/repo-updater:3.15.1@sha256:8ef40206b30f24c9b671d924a287bff17bf803688447d9afcad0517870d5174b
echo "Deployed repo-updater service"