set PG_CONFDIR to ${PG_HOME}/${PG_VERSION}/main

Database initialization and migration tasks need to be done before
performing any configuration bits
This commit is contained in:
Sameer Naik
2015-11-15 13:02:10 +05:30
parent 7601996544
commit 693995dd2b
2 changed files with 81 additions and 81 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ ENV PG_VERSION=9.4 \
PG_RUNDIR=/run/postgresql \
PG_LOGDIR=/var/log/postgresql
ENV PG_CONFDIR="/etc/postgresql/${PG_VERSION}/main" \
PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
ENV PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
PG_CONFDIR="${PG_HOME}/${PG_VERSION}/main" \
PG_DATADIR="${PG_HOME}/${PG_VERSION}/main"
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \