-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy pathdeploy-zoekt-webserver.sh
More file actions
29 lines (27 loc) · 988 Bytes
/
deploy-zoekt-webserver.sh
File metadata and controls
29 lines (27 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Backend for indexed text search operations.
#
# Disk: 200GB / persistent SSD
# Network: 100mbps
# Liveness probe: HTTP GET http://zoekt-webserver-$1:6070/healthz
# Ports exposed to other Sourcegraph services: 6070/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/zoekt-$1-shared-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=zoekt-webserver-$1 \
--hostname=zoekt-webserver-$1 \
--network=sourcegraph \
--restart=always \
--cpus=16 \
--memory=100g \
-e GOMAXPROCS=16 \
-e HOSTNAME=zoekt-webserver-$1:6070 \
-e 'OPENTELEMETRY_DISABLED=false' \
-e 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' \
-v $VOLUME:/data/index \
index.docker.io/sourcegraph/indexed-searcher:187572_2022-12-06_cbecc5321c7d@sha256:79bec59c17482e4039931ed083113bd8723d74c42b96c3c489062f6b33b806f0
echo "Deployed zoekt-webserver $1 service"