Files
deploy-sourcegraph-docker/deploy-github-proxy.sh
T
Beyang LiuandStephen Gutekanst a2d9f6f863 docker-compose: add jaeger-all-in-one (#94)
* docker-compose: add jaeger-all-in-one

* update image sha

* pure docker: remove old jaeger

* pure docker: add new jaeger

* fix deploy-frontend-internal.sh and deploy-frontend.sh

* fix permissions

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2020-04-15 11:20:45 -07:00

27 lines
764 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Rate-limiting proxy for the GitHub API.
#
# CPU: 1
# Memory: 1GB
# Disk: 1GB / non-persistent SSD (only for read-only config file)
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: 3180/TCP 6060/TCP
# Ports exposed to the public internet: none
#
docker run --detach \
--name=github-proxy \
--network=sourcegraph \
--restart=always \
--cpus=1 \
--memory=1g \
-e GOMAXPROCS=1 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e JAEGER_AGENT_HOST=jaeger \
index.docker.io/sourcegraph/github-proxy:3.14.2@sha256:0369a42645db81b4211cec54ca685daf365c785e8e213473505df3193ccacccc
echo "Deployed github-proxy service"