mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-25 01:32:35 +02:00
20 lines
535 B
Plaintext
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
|