do repmgr manual
This commit is contained in:
36
Dockerfile
36
Dockerfile
@@ -129,24 +129,24 @@ RUN set -ex; \
|
||||
# [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
|
||||
# apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
|
||||
#
|
||||
#RUN set -eux; \
|
||||
# dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; \
|
||||
# cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; \
|
||||
# ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; \
|
||||
# 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 install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
|
||||
#
|
||||
#ENV PGDATA=/var/lib/postgresql/data
|
||||
#
|
||||
#RUN install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA"
|
||||
#
|
||||
#VOLUME /var/lib/postgresql/data
|
||||
#
|
||||
#COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/
|
||||
#
|
||||
#RUN ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh
|
||||
RUN set -eux; \
|
||||
dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; \
|
||||
cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; \
|
||||
ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; \
|
||||
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 install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
|
||||
|
||||
ENV PGDATA=/var/lib/postgresql/data
|
||||
|
||||
RUN install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA"
|
||||
|
||||
VOLUME /var/lib/postgresql/data
|
||||
|
||||
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/
|
||||
|
||||
RUN ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user