From a03ad50ea7c7db06b5a63bee1b2d85e0a384ebe6 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 7 Jan 2019 20:36:20 -0700 Subject: [PATCH] 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. --- deploy-gitserver.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy-gitserver.sh b/deploy-gitserver.sh index e6034b2..3697949 100755 --- a/deploy-gitserver.sh +++ b/deploy-gitserver.sh @@ -16,6 +16,7 @@ docker run --detach \ --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" \ No newline at end of file