Skip to content

Commit

Permalink
Revert "Use postgres alpine images everywhere (#457)"
Browse files Browse the repository at this point in the history
This reverts commit c056b85.
  • Loading branch information
davejrt committed Jul 28, 2021
1 parent 45e02b5 commit 3d9f1c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-compose/db-only-migrate.docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
#
pgsql:
container_name: pgsql
image: 'index.docker.io/sourcegraph/postgres-12.6-alpine:3.30.0@sha256:439246675646322cf6b22a277ab86d790287bc4c532e2a2f4a4e0538d06cd206'
image: 'index.docker.io/sourcegraph/postgres-12.6:95244_2021-05-06_2c1f77e@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778'
cpus: 4
mem_limit: '2g'
healthcheck:
Expand Down
9 changes: 5 additions & 4 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ services:
codeintel-db:
condition: service_healthy


# Description: Stores clones of repositories to perform Git operations.
#
# Disk: 200GB / persistent SSD
Expand Down Expand Up @@ -510,7 +511,7 @@ services:
#
pgsql:
container_name: pgsql
image: 'index.docker.io/sourcegraph/postgres-12.6-alpine:3.30.1@sha256:329766fdbbd821be9579627b5d3a0a24dc8a58f251195e6102afef5a402dc456'
image: 'index.docker.io/sourcegraph/postgres-12.6:95244_2021-05-06_2c1f77e@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778'
cpus: 4
mem_limit: '2g'
healthcheck:
Expand Down Expand Up @@ -564,14 +565,14 @@ services:
# would be bad but it can be rebuilt given enough time.)
codeinsights-db:
container_name: codeinsights-db
image: 'index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:a7e203ec2c33c0c402d2fa5c7732058fabd8d6a8713c98b15ff388a8a9a8415e'
image: "index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:75be25ec13a1a2706adefff68c8101a58d692e8d36ebac3e43f33b9304e5b8c7"
cpus: 4
mem_limit: '2g'
mem_limit: "2g"
environment:
- POSTGRES_PASSWORD=password
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- 'codeinsights-db:/var/lib/postgresql/data/'
- "codeinsights-db:/var/lib/postgresql/data/"
networks:
- sourcegraph
restart: always
Expand Down
2 changes: 1 addition & 1 deletion pure-docker/deploy-pgsql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker run --detach \
--memory=2g \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v $VOLUME:/var/lib/postgresql/data/ \
index.docker.io/sourcegraph/postgres-12.6-alpine:3.30.0@sha256:439246675646322cf6b22a277ab86d790287bc4c532e2a2f4a4e0538d06cd206
index.docker.io/sourcegraph/postgres-12.6:95244_2021-05-06_2c1f77e@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778

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

0 comments on commit 3d9f1c0

Please sign in to comment.