2022-02-11 13:29:17 +01:00
|
|
|
FROM oraclelinux:7
|
2022-02-28 20:19:10 +01:00
|
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
2020-05-17 08:25:07 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
ENV SOURCE="/var/lib/docker/volumes" DEST="/var/backups/"
|
2020-05-17 08:25:07 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
RUN yum -y install gettext rsync ssh sshpass cronie && yum clean all
|
2020-05-17 08:25:07 +02:00
|
|
|
|
|
|
|
# Avoid overlayfs bug with tail
|
|
|
|
VOLUME /var/log
|
|
|
|
|
|
|
|
WORKDIR /opt/backup
|
|
|
|
COPY crontab ./crontab
|
|
|
|
COPY rsync.template .
|
2021-03-12 19:48:43 +01:00
|
|
|
COPY plan.py .
|
|
|
|
COPY remote.py .
|
2020-05-17 08:25:07 +02:00
|
|
|
COPY launch.c7.sh launch.sh
|
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
CMD ["bash", "launch.sh"]
|