From 2ef053c2beba6b8ca1960370bd1ca3d1f33b253c Mon Sep 17 00:00:00 2001 From: rlchapin Date: Mon, 29 May 2017 15:18:53 -0600 Subject: [PATCH] Update Dockerfile Modify VOLUME to point to test directories in the virtual machine --- 9.6/alpine/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/9.6/alpine/Dockerfile b/9.6/alpine/Dockerfile index cf6a9828ea..ada1b01dfb 100644 --- a/9.6/alpine/Dockerfile +++ b/9.6/alpine/Dockerfile @@ -139,7 +139,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH ENV PGDATA /var/lib/postgresql/data RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values) -VOLUME /var/lib/postgresql/data +VOLUME /postgres/data +VOLUME /postgres/xlogs COPY docker-entrypoint.sh /usr/local/bin/ RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat