From 89720df1f8921f13f3cdffc2054b74e7d1da457c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Mon, 25 Nov 2024 14:01:14 -0800 Subject: [PATCH] fix: use postgresql 16 images --- docker-compose/docker-compose.yaml | 6 +++--- pure-docker/deploy-codeinsights-db.sh | 22 +++++++++++----------- pure-docker/deploy-codeintel-db.sh | 16 ++++++++-------- pure-docker/deploy-pgsql.sh | 16 ++++++++-------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index 7f04860ca..fe962f16b 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -553,7 +553,7 @@ services: # pgsql: container_name: pgsql - image: 'index.docker.io/sourcegraph/postgres-12-alpine:5.9.1590@sha256:3d5dd36e3af6b643903f507422be19ed1cb1f5f71c4541572d4a8a252e81aeb8' + image: 'index.docker.io/sourcegraph/postgresql-16:insiders' cpus: 4 mem_limit: '4g' shm_size: '1g' @@ -600,7 +600,7 @@ services: # codeintel-db: container_name: codeintel-db - image: 'index.docker.io/sourcegraph/codeintel-db:5.9.1590@sha256:3d5dd36e3af6b643903f507422be19ed1cb1f5f71c4541572d4a8a252e81aeb8' + image: 'index.docker.io/sourcegraph/postgresql-16:insiders' cpus: 4 mem_limit: '4g' shm_size: '1g' @@ -647,7 +647,7 @@ services: # codeinsights-db: container_name: codeinsights-db - image: 'index.docker.io/sourcegraph/codeinsights-db:5.9.1590@sha256:4e75b2c463ce1ef3bfeec4bb71a16693df02005e66b9e697859ce61064e08f42' + image: 'index.docker.io/sourcegraph/postgresql-16-codeinsights:insiders' cpus: 4 mem_limit: '2g' shm_size: '1g' diff --git a/pure-docker/deploy-codeinsights-db.sh b/pure-docker/deploy-codeinsights-db.sh index 9cb79f2b6..22628d77c 100755 --- a/pure-docker/deploy-codeinsights-db.sh +++ b/pure-docker/deploy-codeinsights-db.sh @@ -13,17 +13,17 @@ VOLUME="$HOME/sourcegraph-docker/codeinsights-db-disk" ./ensure-volume.sh $VOLUME 999 docker run --detach \ - --name=codeinsights-db \ - --network=sourcegraph \ - --restart=always \ - --cpus=4 \ - --memory=2g \ - -e POSTGRES_DB=postgres \ - -e POSTGRES_PASSWORD=password \ - -e POSTGRES_USER=postgres \ - -e PGDATA=/var/lib/postgresql/data/pgdata \ - -v $VOLUME:/var/lib/postgresql/data/ \ - index.docker.io/sourcegraph/codeinsights-db:187572_2022-12-06_cbecc5321c7d@sha256:4dd89a1279e7d55ddcb5b570d0bb544422dd1ecb0e3662f23d22f9643837c2b5 + --name=codeinsights-db \ + --network=sourcegraph \ + --restart=always \ + --cpus=4 \ + --memory=2g \ + -e POSTGRES_DB=postgres \ + -e POSTGRES_PASSWORD=password \ + -e POSTGRES_USER=postgres \ + -e PGDATA=/var/lib/postgresql/data/pgdata \ + -v $VOLUME:/var/lib/postgresql/data/ \ + index.docker.io/sourcegraph/postgresql-16-codeinsights:insiders # Sourcegraph requires PostgreSQL 12+. Generally newer versions are better, # but anything 12 and higher is supported. diff --git a/pure-docker/deploy-codeintel-db.sh b/pure-docker/deploy-codeintel-db.sh index 0787e707e..c5a550cce 100755 --- a/pure-docker/deploy-codeintel-db.sh +++ b/pure-docker/deploy-codeintel-db.sh @@ -12,14 +12,14 @@ set -e VOLUME="$HOME/sourcegraph-docker/codeintel-db-disk" ./ensure-volume.sh $VOLUME 999 docker run --detach \ - --name=codeintel-db \ - --network=sourcegraph \ - --restart=always \ - --cpus=4 \ - --memory=2g \ - -e PGDATA=/var/lib/postgresql/data/pgdata \ - -v $VOLUME:/var/lib/postgresql/data/ \ - index.docker.io/sourcegraph/codeintel-db:187572_2022-12-06_cbecc5321c7d@sha256:7fb02a9392ce4dd3d4210dbd5792c09c4210a2dfc6dc389ed679137784359102 + --name=codeintel-db \ + --network=sourcegraph \ + --restart=always \ + --cpus=4 \ + --memory=2g \ + -e PGDATA=/var/lib/postgresql/data/pgdata \ + -v $VOLUME:/var/lib/postgresql/data/ \ + index.docker.io/sourcegraph/postgresql-16:insiders # Sourcegraph requires PostgreSQL 12+. Generally newer versions are better, # but anything 12 and higher is supported. diff --git a/pure-docker/deploy-pgsql.sh b/pure-docker/deploy-pgsql.sh index 432b53c3d..cf7f670ac 100755 --- a/pure-docker/deploy-pgsql.sh +++ b/pure-docker/deploy-pgsql.sh @@ -12,14 +12,14 @@ set -e VOLUME="$HOME/sourcegraph-docker/pgsql-disk" ./ensure-volume.sh $VOLUME 999 docker run --detach \ - --name=pgsql \ - --network=sourcegraph \ - --restart=always \ - --cpus=4 \ - --memory=2g \ - -e PGDATA=/var/lib/postgresql/data/pgdata \ - -v $VOLUME:/var/lib/postgresql/data/ \ - index.docker.io/sourcegraph/postgres-12-alpine:187572_2022-12-06_cbecc5321c7d@sha256:44f6e9a51fafb99573cbd767f20f68913db5a02920c5974e4fa560735d745328 + --name=pgsql \ + --network=sourcegraph \ + --restart=always \ + --cpus=4 \ + --memory=2g \ + -e PGDATA=/var/lib/postgresql/data/pgdata \ + -v $VOLUME:/var/lib/postgresql/data/ \ + index.docker.io/sourcegraph/postgresql-16:insiders # Sourcegraph requires PostgreSQL 12+. Generally newer versions are better, # but anything 12 and higher is supported.