Skip to content

Commit fd2df07

Browse files
add pure docker deploy script for syntactic-code-intel-worker (#1213)
Closes https://linear.app/sourcegraph/issue/REL-993/syntactic-code-intel-worker-container-on-pure-docker-deployment Add a pure docker deploy script corresponding to the service definition in `docker-compose.yaml` ### Test plan Tested locally with `podman` ensuring that the container comes up with expected properties --------- Co-authored-by: Varun Gandhi <[email protected]>
1 parent 782c470 commit fd2df07

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
source ./replicas.sh
4+
5+
# Description: High level syntax analysis
6+
#
7+
# Ports exposed to other Sourcegraph services: 3288/TCP
8+
# Ports exposed to the public internet: none
9+
#
10+
# NOTE: Keep in sync with https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/main/docker-compose/docker-compose.yaml#L372
11+
#
12+
docker run --detach \
13+
--name=syntactic-code-intel-worker \
14+
--network=sourcegraph \
15+
--restart=always \
16+
--cpus=2 \
17+
--memory=4g \
18+
-e 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' \
19+
-e 'PRECISE_CODE_INTEL_UPLOAD_BACKEND=blobstore' \
20+
-e 'PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT=http://blobstore:9000' \
21+
-e 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' \
22+
-e 'SYNTACTIC_CODE_INTEL_WORKER_ADDR=:3288' \
23+
index.docker.io/sourcegraph/syntactic-code-intel-worker:6.1.1295@sha256:c6e2b097b8f16394e339588e208c43587f1fa6a35cb44e9759622c448ddc1445
24+
25+
echo "Deployed syntactic-code-intel-worker service"

0 commit comments

Comments
 (0)