-
Notifications
You must be signed in to change notification settings - Fork 569
add pure docker deploy script for syntactic-code-intel-worker #1213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
| source ./replicas.sh | ||
|
|
||
| # Description: High level syntax analysis | ||
| # | ||
| # Ports exposed to other Sourcegraph services: 3288/TCP | ||
| # Ports exposed to the public internet: none | ||
| # | ||
| # NOTE: Keep in sync with https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/main/docker-compose/docker-compose.yaml#L372 | ||
| # | ||
| docker run --detach \ | ||
| --name=syntactic-code-intel-worker \ | ||
| --network=sourcegraph \ | ||
| --restart=always \ | ||
| --cpus=2 \ | ||
| --memory=4g \ | ||
| -e 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' \ | ||
| -e 'PRECISE_CODE_INTEL_UPLOAD_BACKEND=blobstore' \ | ||
| -e 'PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT=http://blobstore:9000' \ | ||
| -e 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' \ | ||
| -e 'SYNTACTIC_CODE_INTEL_WORKER_ADDR=:3288' \ | ||
| index.docker.io/sourcegraph/syntactic-code-intel-worker:6.1.1295@sha256:c6e2b097b8f16394e339588e208c43587f1fa6a35cb44e9759622c448ddc1445 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're pinning a SHA here, do we need to go in and update it on every release? If so, do we need to update any release checklists for doing so?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't actually maintain up to date shas here. Check the release tags to see: https://github.com/sourcegraph/deploy-sourcegraph-docker/blob/v6.3.0/pure-docker/deploy-frontend.sh It might be worth a later PR to fix this up though, and I'm thinking of adding a test to the pipeline to ensure that services defined in the docker-compose.yaml have a corresponding file here. |
||
|
|
||
| echo "Deployed syntactic-code-intel-worker service" | ||
Uh oh!
There was an error while loading. Please reload this page.