Merge branch 'master' of github.com:DomainDrivenArchitecture/dda-backup
This commit is contained in:
commit
e2aa11e410
3 changed files with 5 additions and 5 deletions
|
@ -25,4 +25,4 @@ RUN apt-get -y install postgresql
|
||||||
|
|
||||||
# Prepare Entrypoint Script
|
# Prepare Entrypoint Script
|
||||||
ADD resources /tmp/resources
|
ADD resources /tmp/resources
|
||||||
RUN chmod 700 /tmp/resources/entrypoint.sh /tmp/resources/create_pg_pass.sh
|
RUN chmod 700 /tmp/resources/entrypoint.sh /tmp/resources/create_pgpass.sh
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "${POSTGRES_HOST}:$(cat ${POSTGRES_DB_FILE}):$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" > /root/.pg_pass
|
echo "${POSTGRES_HOST}:$(cat ${POSTGRES_DB_FILE}):$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" > /root/.pgpass
|
||||||
echo "${POSTGRES_HOST}:template1:$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" >> /root/.pg_pass
|
echo "${POSTGRES_HOST}:template1:$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" >> /root/.pgpass
|
||||||
chmod 0600 /root/.pg_pass
|
chmod 0600 /root/.pgpass
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
/tmp/resources/create_pg_pass.sh
|
/tmp/resources/create_pgpass.sh
|
||||||
|
|
||||||
# Idle process
|
# Idle process
|
||||||
while true; do
|
while true; do
|
||||||
|
|
Loading…
Reference in a new issue