mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
26 lines
821 B
Bash
Executable File
26 lines
821 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Saved search query runner / notification service.
|
|
#
|
|
# 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: 3183/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
docker create \
|
|
--name=query-runner \
|
|
--network=sourcegraph \
|
|
-e SOURCEGRAPH_CONFIG_FILE=/etc/sourcegraph/config.json \
|
|
-e SRC_GIT_SERVERS=gitserver-0:3178 \
|
|
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
|
|
sourcegraph/query-runner:2.12.0@sha256:966a3766394888fdbede584944b032dad86032489637fa15ef0fa84bf120e00b
|
|
|
|
# Create /etc/sourcegraph/config.json
|
|
docker cp ./sourcegraph query-runner:/etc/
|
|
|
|
docker start query-runner
|
|
echo "Deployed query-runner service" |