You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 879B

1234567891011121314151617181920212223242526272829303132
  1. FROM robinthoni/postgres-multiarch:9.6
  2. RUN mv -v /usr/share/postgresql/$PG_MAJOR/pg_hba.conf.sample /usr/share/postgresql/ \
  3. && ln -sv ../pg_hba.conf.sample /usr/share/postgresql/$PG_MAJOR/
  4. RUN apt-get update && apt-get -y install\
  5. cron\
  6. python3\
  7. python3-pip\
  8. &&\
  9. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  10. RUN pip3 install -U\
  11. argparse
  12. RUN mkdir /docker-entrypoint-initdb-core.d
  13. COPY ./docker-entrypoint-initdb-core.d/ /docker-entrypoint-initdb-core.d
  14. COPY ./backup/pg_backup.config /etc/pg_backup.config
  15. COPY ./backup/pg_backup_rotated.sh /usr/local/bin/pg_backup_rotated.sh
  16. COPY ./backup/pg_backup_rotated.cron.sh /etc/cron.daily/pg_backup_rotated
  17. COPY ./docker-entrypoint.sh /usr/local/bin/
  18. COPY ./migrate.py /usr/local/bin/
  19. RUN rm -rf /var/log/*
  20. VOLUME "/var/lib/postgresql/backup"