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; \
|
# [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
|
||||||
# apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
|
# apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
|
||||||
#
|
#
|
||||||
#RUN set -eux; \
|
RUN set -eux; \
|
||||||
# dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; \
|
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; \
|
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/"; \
|
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; \
|
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
|
grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample
|
||||||
#
|
|
||||||
#RUN install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
|
RUN install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
|
||||||
#
|
|
||||||
#ENV PGDATA=/var/lib/postgresql/data
|
ENV PGDATA=/var/lib/postgresql/data
|
||||||
#
|
|
||||||
#RUN install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA"
|
RUN install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA"
|
||||||
#
|
|
||||||
#VOLUME /var/lib/postgresql/data
|
VOLUME /var/lib/postgresql/data
|
||||||
#
|
|
||||||
#COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/
|
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 ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash"]
|
ENTRYPOINT ["/bin/bash"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user