Files
deploy-sourcegraph-docker/deploy-gitserver.sh
T
Stephen Gutekanst a03ad50ea7 correctly mount the gitserver repo mirroring disk
Prior to this change, the gitserver disk was not properly mounted which meant
that on restart gitserver would have to clone the repository in full from the
code host again, rather than using its on-disk mirror which is much faster.

This was an oversight, but easily fixed by just properly mounting the disk.
2019-01-07 20:36:20 -07:00

22 lines
597 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Description: Stores clones of repositories to perform Git operations.
#
# CPU: 4
# Memory: 8GB
# Disk: 200GB / persistent SSD
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: 3182/TCP
# Ports exposed to the public internet: none
#
docker run --detach \
--name=gitserver-0 \
--network=sourcegraph \
--restart=always \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-v ~/sourcegraph-docker/gitserver-0-disk:/data/repos \
sourcegraph/gitserver:3.0.0-alpha.8
echo "Deployed gitserver service"