#!/usr/bin/env bash set -e source ./replicas.sh # Description: Backend for text search operations. # # Disk: 128GB / non-persistent SSD # Network: 100mbps # Liveness probe: HTTP GET http://searcher:3181/healthz # Ports exposed to other Sourcegraph services: 3181/TCP 6060/TCP # Ports exposed to the public internet: none # VOLUME="$HOME/sourcegraph-docker/searcher-$1-disk" ./ensure-volume.sh $VOLUME 100 docker run --detach \ --name=searcher-$1 \ --network=sourcegraph \ --restart=always \ --cpus=2 \ --memory=2g \ -e GOMAXPROCS=2 \ -e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \ -e JAEGER_AGENT_HOST=jaeger \ -v $VOLUME:/mnt/cache \ index.docker.io/sourcegraph/searcher:insiders@sha256:6d5dd3c48a6c13fc554422fb24cc5bb6f30aa833e34bd90b6dd5558736095eab echo "Deployed searcher $1 service"