Update permissions from 777 to 1777 (redux)
I somehow missed Debian in 25b3034e9b (only updated Alpine), so this updates Debian in the same way.
> This still supports the "arbitrary user" use case but with slightly tighter permissions on the end result.
>
> This one is a little bit more "special" other images (due to the existing runtime/entrypoint modification of the directory modes) so I've tried to pick reasonable values for both halves.
This commit is contained in:
parent
f85674ce47
commit
2468c9d91a
|
|
@ -165,7 +165,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -177,11 +177,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -177,11 +177,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -175,11 +175,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ RUN set -eux; \
|
|||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
|
|
|
|||
|
|
@ -173,11 +173,11 @@ RUN set -eux; \
|
|||
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; \
|
||||
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA /var/lib/postgresql/data
|
||||
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA"
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
|
|
|||
Loading…
Reference in New Issue