Files
deploy-sourcegraph-docker/pure-docker/deploy-migrator.sh
T
Stephen Gutekanst b5f8cb92a8 all: replace minio with sourcegraph/blobstore (#883)
* all: replace minio with sourcegraph/blobstore
* all: bump image tags for blobstore change
* pure-docker: update image tags (manually)

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2022-12-06 13:57:39 -07:00

27 lines
745 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Description: Performs database migrations
#
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: none
# Ports exposed to the public internet: none
#
docker run --detach \
--name=migrator \
--network=sourcegraph \
--restart=on-failure \
--cpus=1 \
--memory=1g \
-e PGHOST=pgsql \
-e PGUSER=sg \
-e CODEINTEL_PGUSER=sg \
-e CODEINTEL_PGHOST=codeintel-db \
-e CODEINSIGHTS_PGDATASOURCE=postgres://postgres:password@codeinsights-db:5432/postgres \
index.docker.io/sourcegraph/migrator:187572_2022-12-06_cbecc5321c7d@sha256:93fc175df594738a98a62f2057271824cdb674b0e63bedac9dc7cb0f04db76bb \
up -db=all
echo "Deployed migrator service"