Skip to content

Commit c056b85

Browse files
authored
Use postgres alpine images everywhere (#457)
Prefer alpine image everywhere
1 parent 5f0a7be commit c056b85

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

deploy-pgsql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ docker run --detach \
1919
--memory=2g \
2020
-e PGDATA=/var/lib/postgresql/data/pgdata \
2121
-v $VOLUME:/var/lib/postgresql/data/ \
22-
index.docker.io/sourcegraph/postgres-12.6:95244_2021-05-06_2c1f77e@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778
22+
index.docker.io/sourcegraph/postgres-12.6-alpine:3.30.0@sha256:439246675646322cf6b22a277ab86d790287bc4c532e2a2f4a4e0538d06cd206
2323

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

docker-compose/db-only-migrate.docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
#
1313
pgsql:
1414
container_name: pgsql
15-
image: 'index.docker.io/sourcegraph/postgres-12.6:95244_2021-05-06_2c1f77e@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778'
15+
image: 'index.docker.io/sourcegraph/postgres-12.6-alpine:3.30.0@sha256:439246675646322cf6b22a277ab86d790287bc4c532e2a2f4a4e0538d06cd206'
1616
cpus: 4
1717
mem_limit: '2g'
1818
healthcheck:

docker-compose/docker-compose.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ services:
150150
codeintel-db:
151151
condition: service_healthy
152152

153-
154153
# Description: Stores clones of repositories to perform Git operations.
155154
#
156155
# Disk: 200GB / persistent SSD
@@ -511,7 +510,7 @@ services:
511510
#
512511
pgsql:
513512
container_name: pgsql
514-
image: 'index.docker.io/sourcegraph/postgres-12.6:95244_2021-05-06_2c1f77e@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778'
513+
image: 'index.docker.io/sourcegraph/postgres-12.6-alpine:3.30.0@sha256:439246675646322cf6b22a277ab86d790287bc4c532e2a2f4a4e0538d06cd206'
515514
cpus: 4
516515
mem_limit: '2g'
517516
healthcheck:
@@ -563,14 +562,14 @@ services:
563562
# would be bad but it can be rebuilt given enough time.)
564563
codeinsights-db:
565564
container_name: codeinsights-db
566-
image: "index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:75be25ec13a1a2706adefff68c8101a58d692e8d36ebac3e43f33b9304e5b8c7"
565+
image: 'index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:75be25ec13a1a2706adefff68c8101a58d692e8d36ebac3e43f33b9304e5b8c7'
567566
cpus: 4
568-
mem_limit: "2g"
567+
mem_limit: '2g'
569568
environment:
570569
- POSTGRES_PASSWORD=password
571570
- PGDATA=/var/lib/postgresql/data/pgdata
572571
volumes:
573-
- "codeinsights-db:/var/lib/postgresql/data/"
572+
- 'codeinsights-db:/var/lib/postgresql/data/'
574573
networks:
575574
- sourcegraph
576575
restart: always

0 commit comments

Comments
 (0)