Skip to content

Commit

Permalink
RHINENG-12045: replace postgresql with same image as used in clowder
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Aug 19, 2024
1 parent 6ed5336 commit f79d8de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
7 changes: 4 additions & 3 deletions conf/database.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
POSTGRES_USER=admin
POSTGRES_PASSWORD=passwd
POSTGRES_DB=patchman
POSTGRESQL_USER=admin
POSTGRESQL_PASSWORD=passwd
POSTGRESQL_DATABASE=patchman
PGDATA=/var/lib/pgsql/data
2 changes: 1 addition & 1 deletion dev/database/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/postgres:16.1
FROM quay.io/cloudservices/postgresql-rds:16-4649c84

ADD /dev/database/init.sh /docker-entrypoint-initdb.d/

Expand Down
3 changes: 1 addition & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ services:
context: .
dockerfile: dev/database/Dockerfile
image: patchman-engine-db
command: 'postgres -c config_file=/opt/app-root/src/postgresql-cfg/custom.conf'
volumes:
- db-data:/var/lib/postgresql/data
- db-data:/var/lib/pgsql/data
ports:
- 5433:5432
env_file:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ services:
context: .
dockerfile: dev/database/Dockerfile
image: patchman-engine-db
command: 'postgres -c config_file=/opt/app-root/src/postgresql-cfg/custom.conf'
ports:
- 5433:5432
env_file:
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ services:
context: .
dockerfile: dev/database/Dockerfile
image: patchman-engine-db
command: 'postgres -c config_file=/opt/app-root/src/postgresql-cfg/custom.conf'
volumes:
- db-data:/var/lib/postgresql/data
- db-data:/var/lib/pgsql/data
ports:
- 5433:5432
env_file:
Expand Down

0 comments on commit f79d8de

Please sign in to comment.