Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Pgpool with tini #219

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/barman/bin/wal-receiver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SLOTS_COUNT=`barman show-server $UPSTREAM_NAME | grep "replication_slot: Record(
if [ "$SLOTS_COUNT" -gt "0" ]; then
echo "Looks like replication slot already exists"
else
echo "Creating replication slot: $REPLICATION_SLOT_NAM"
echo "Creating replication slot: $REPLICATION_SLOT_NAME"
barman receive-wal --create-slot $UPSTREAM_NAME
fi

Expand Down
8 changes: 7 additions & 1 deletion src/includes/dockerfile/Pgpool-3.3-3.7.part.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ COPY ./pgpool/configs /var/pgpool_configs

RUN chmod +x -R /usr/local/bin/pgpool

ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc /tini.asc
RUN gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
&& gpg --verify /tini.asc && chmod a+x /tini

ENV CHECK_USER replication_user
ENV CHECK_PASSWORD replication_pass
ENV CHECK_PGCONNECT_TIMEOUT 10
Expand All @@ -60,4 +66,4 @@ EXPOSE 9898
HEALTHCHECK --interval=1m --timeout=10s --retries=5 \
CMD /usr/local/bin/pgpool/has_write_node.sh

CMD ["/usr/local/bin/pgpool/entrypoint.sh"]
CMD ["/tini", "--", "/usr/local/bin/pgpool/entrypoint.sh"]