1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-23 01:24:11 +02:00
pgbackrest/test/vm/docker/co6-backup

20 lines
535 B
Plaintext

# CentOS 6 Backup Container
FROM vagrant/co6-base
# Create backrest user
RUN adduser -gpostgres -u5002 -n backrest
# Setup SSH
RUN mkdir /home/backrest/.ssh
RUN cp -p /root/resource/.ssh/* /home/backrest/.ssh
RUN chown -R backrest:postgres /home/backrest
RUN chmod 700 /home/backrest/.ssh
# Setup repository
RUN mkdir /var/lib/backrest
RUN chown -R backrest:postgres /var/lib/backrest
RUN chmod 750 /var/lib/backrest
# Install Perl packages
RUN yum -y install perl perl-Time-HiRes perl-parent perl-JSON perl-Digest-SHA perl-DBD-Pg