From ae8e0709d781f6617582be2f7754d41b437fd86d Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 30 Sep 2023 12:38:57 -0400 Subject: [PATCH] ssl dockercompose test config --- docker-compose.yml | 1 + tests/fixtures/initdb-dc-ssl.sh | 17 +++++++++++++++++ tests/fixtures/initdb.sh | 1 + 3 files changed, 19 insertions(+) create mode 100755 tests/fixtures/initdb-dc-ssl.sh diff --git a/docker-compose.yml b/docker-compose.yml index 1bab0390..bda05412 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,6 +72,7 @@ services: - PGPASSWORD=postgres volumes: - ./tests/fixtures:/fixtures + - ./tests/fixtures/initdb-dc-ssl.sh:/docker-entrypoint-initdb.d/10_martin.sh - ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh db-legacy: diff --git a/tests/fixtures/initdb-dc-ssl.sh b/tests/fixtures/initdb-dc-ssl.sh new file mode 100755 index 00000000..f6767534 --- /dev/null +++ b/tests/fixtures/initdb-dc-ssl.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env sh +set -e + +mv /var/lib/postgresql/data/pg_hba.conf /var/lib/postgresql/data/pg_hba.conf.bak +cat > /var/lib/postgresql/data/pg_hba.conf <