Skip to content

Commit f3e2664

Browse files
fix: use postgresql 16 images (#1116)
We need to use the new postgresql images ### Checklist <!-- Kubernetes and Docker Compose MUST be kept in sync. You should not merge a change here without a corresponding change in the other repository, unless it truly is specific to this repository. If uneeded, add link or explanation of why it is not needed here. --> * [x] Sister [deploy-sourcegraph](https://github.com/sourcegraph/deploy-sourcegraph) change: * [x] Sister [customer-replica](https://github.com/sourcegraph/deploy-sourcegraph-docker-customer-replica-1) change (if necessary, for any changes affecting pure-docker or configuration): * [x] All images have a valid tag and SHA256 sum ### Test plan CI <!-- As part of SOC2/GN-104 and SOC2/GN-105 requirements, all pull requests are REQUIRED to provide a "test plan". A test plan is a loose explanation of what you have done or implemented to test this, as outlined in our Testing principles and guidelines: https://docs.sourcegraph.com/dev/background-information/testing_principles Write your test plan here after the "Test plan" header. -->
1 parent aac4555 commit f3e2664

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

docker-compose/docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ services:
553553
#
554554
pgsql:
555555
container_name: pgsql
556-
image: 'index.docker.io/sourcegraph/postgres-12-alpine:5.9.1590@sha256:3d5dd36e3af6b643903f507422be19ed1cb1f5f71c4541572d4a8a252e81aeb8'
556+
image: 'index.docker.io/sourcegraph/postgresql-16:insiders'
557557
cpus: 4
558558
mem_limit: '4g'
559559
shm_size: '1g'
@@ -600,7 +600,7 @@ services:
600600
#
601601
codeintel-db:
602602
container_name: codeintel-db
603-
image: 'index.docker.io/sourcegraph/codeintel-db:5.9.1590@sha256:3d5dd36e3af6b643903f507422be19ed1cb1f5f71c4541572d4a8a252e81aeb8'
603+
image: 'index.docker.io/sourcegraph/postgresql-16:insiders'
604604
cpus: 4
605605
mem_limit: '4g'
606606
shm_size: '1g'
@@ -647,7 +647,7 @@ services:
647647
#
648648
codeinsights-db:
649649
container_name: codeinsights-db
650-
image: 'index.docker.io/sourcegraph/codeinsights-db:5.9.1590@sha256:4e75b2c463ce1ef3bfeec4bb71a16693df02005e66b9e697859ce61064e08f42'
650+
image: 'index.docker.io/sourcegraph/postgresql-16-codeinsights:insiders'
651651
cpus: 4
652652
mem_limit: '2g'
653653
shm_size: '1g'

pure-docker/deploy-codeinsights-db.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ VOLUME="$HOME/sourcegraph-docker/codeinsights-db-disk"
1313
./ensure-volume.sh $VOLUME 999
1414

1515
docker run --detach \
16-
--name=codeinsights-db \
17-
--network=sourcegraph \
18-
--restart=always \
19-
--cpus=4 \
20-
--memory=2g \
21-
-e POSTGRES_DB=postgres \
22-
-e POSTGRES_PASSWORD=password \
23-
-e POSTGRES_USER=postgres \
24-
-e PGDATA=/var/lib/postgresql/data/pgdata \
25-
-v $VOLUME:/var/lib/postgresql/data/ \
26-
index.docker.io/sourcegraph/codeinsights-db:187572_2022-12-06_cbecc5321c7d@sha256:4dd89a1279e7d55ddcb5b570d0bb544422dd1ecb0e3662f23d22f9643837c2b5
16+
--name=codeinsights-db \
17+
--network=sourcegraph \
18+
--restart=always \
19+
--cpus=4 \
20+
--memory=2g \
21+
-e POSTGRES_DB=postgres \
22+
-e POSTGRES_PASSWORD=password \
23+
-e POSTGRES_USER=postgres \
24+
-e PGDATA=/var/lib/postgresql/data/pgdata \
25+
-v $VOLUME:/var/lib/postgresql/data/ \
26+
index.docker.io/sourcegraph/postgresql-16-codeinsights:insiders
2727

2828
# Sourcegraph requires PostgreSQL 12+. Generally newer versions are better,
2929
# but anything 12 and higher is supported.

pure-docker/deploy-codeintel-db.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ set -e
1212
VOLUME="$HOME/sourcegraph-docker/codeintel-db-disk"
1313
./ensure-volume.sh $VOLUME 999
1414
docker run --detach \
15-
--name=codeintel-db \
16-
--network=sourcegraph \
17-
--restart=always \
18-
--cpus=4 \
19-
--memory=2g \
20-
-e PGDATA=/var/lib/postgresql/data/pgdata \
21-
-v $VOLUME:/var/lib/postgresql/data/ \
22-
index.docker.io/sourcegraph/codeintel-db:187572_2022-12-06_cbecc5321c7d@sha256:7fb02a9392ce4dd3d4210dbd5792c09c4210a2dfc6dc389ed679137784359102
15+
--name=codeintel-db \
16+
--network=sourcegraph \
17+
--restart=always \
18+
--cpus=4 \
19+
--memory=2g \
20+
-e PGDATA=/var/lib/postgresql/data/pgdata \
21+
-v $VOLUME:/var/lib/postgresql/data/ \
22+
index.docker.io/sourcegraph/postgresql-16:insiders
2323

2424
# Sourcegraph requires PostgreSQL 12+. Generally newer versions are better,
2525
# but anything 12 and higher is supported.

pure-docker/deploy-pgsql.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ set -e
1212
VOLUME="$HOME/sourcegraph-docker/pgsql-disk"
1313
./ensure-volume.sh $VOLUME 999
1414
docker run --detach \
15-
--name=pgsql \
16-
--network=sourcegraph \
17-
--restart=always \
18-
--cpus=4 \
19-
--memory=2g \
20-
-e PGDATA=/var/lib/postgresql/data/pgdata \
21-
-v $VOLUME:/var/lib/postgresql/data/ \
22-
index.docker.io/sourcegraph/postgres-12-alpine:187572_2022-12-06_cbecc5321c7d@sha256:44f6e9a51fafb99573cbd767f20f68913db5a02920c5974e4fa560735d745328
15+
--name=pgsql \
16+
--network=sourcegraph \
17+
--restart=always \
18+
--cpus=4 \
19+
--memory=2g \
20+
-e PGDATA=/var/lib/postgresql/data/pgdata \
21+
-v $VOLUME:/var/lib/postgresql/data/ \
22+
index.docker.io/sourcegraph/postgresql-16:insiders
2323

2424
# Sourcegraph requires PostgreSQL 12+. Generally newer versions are better,
2525
# but anything 12 and higher is supported.

0 commit comments

Comments
 (0)