Public | Automated Build

Last pushed: a day ago
Dockerfile
FROM debian:jessie ARG DOCKERIZE_VERSION=v0.2.0 ARG POSTGRES_CLIENT_VERSION=9.6 ARG PGPOOL_VERSION=3.6\* RUN apt-get update && \ apt-get install -y wget libffi-dev libssl-dev && \ wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - && \ sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' && \ apt-get update RUN apt-get install -y postgresql-client-$POSTGRES_CLIENT_VERSION pgpool2=$PGPOOL_VERSION RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && \ tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz COPY ./pgpool/bin /usr/local/bin/pgpool COPY ./pgpool/configs /var/pgpool_configs RUN chmod +x -R /usr/local/bin/pgpool ENV CHECK_USER replication_user ENV CHECK_PASSWORD replication_pass ENV CHECK_PGCONNECT_TIMEOUT 10 ENV WAIT_BACKEND_TIMEOUT 120 ENV REQUIRE_MIN_BACKENDS 0 HEALTHCHECK --interval=1m --timeout=10s --retries=5 \ CMD /usr/local/bin/pgpool/has_write_node.sh CMD ["/usr/local/bin/pgpool/entrypoint.sh"]
Source Repository