Dockerfile 666 B

12345678910111213141516171819202122232425262728293031
  1. FROM alpine:3.7
  2. LABEL mantainer="robert.gauto@gmail.com"
  3. ENV CONFIG_PATH=/etc PID_PATH=/var/run/pgpool
  4. RUN set -x \
  5. apk update && \
  6. apk upgrade && \
  7. apk add --no-cache --virtual \
  8. pgpool && \
  9. mkdir -p $PID_PATH && \
  10. mkdir -p $CONFIG_PATH
  11. VOLUME ["$CONFIG_PATH"]
  12. COPY pcp.conf "$CONFIG_PATH"
  13. COPY pool_hba.conf "$CONFIG_PATH"
  14. COPY pgpool.conf "$CONFIG_PATH"
  15. COPY failover.sh "$CONFIG_PATH"
  16. COPY recovery_1st_stage "$CONFIG_PATH"
  17. COPY pgpool_remote_start "$CONFIG_PATH"
  18. RUN chmod +x /etc/failover.sh && chmod +x /etc/recovery_1st_stage && chmod +x /etc/pgpool_remote_start
  19. ADD entrypoint.sh ./
  20. #EXPOSE 9999
  21. ENTRYPOINT ["./entrypoint.sh"]
  22. CMD ["pgpool"]