We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9d9db commit 7e43a1eCopy full SHA for 7e43a1e
common/db/Dockerfile
@@ -7,6 +7,14 @@ ARG BARMAN_HOST
7
8
ENV BARMAN_HOST=$BARMAN_HOST
9
10
+# Check if ENABLE_BARMAN is set to true, and if so, ensure other arguments are provided
11
12
+RUN if [ "$ENABLE_BARMAN" = "true" ]; then \
13
+ : "${DB_SSH_PRIVATE_KEY:?DB_SSH_PRIVATE_KEY is not set}"; \
14
+ : "${DB_SSH_PUBLIC_KEY:?DB_SSH_PUBLIC_KEY is not set}"; \
15
+ : "${BARMAN_HOST:?BARMAN_HOST is not set}"; \
16
+ fi
17
+
18
ADD config/postgresql.conf.template /etc/postgresql/postgresql.conf.template
19
ADD config/pg_hba.conf.template /etc/postgresql/pg_hba.conf.template
20
0 commit comments