2020-05-17 11:55:55 +02:00
|
|
|
FROM debian:stretch
|
2022-02-28 20:19:10 +01:00
|
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
2016-10-07 12:22:46 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
ENV SOURCE="/var/lib/docker/volumes" DEST="/var/backups/"
|
2016-10-07 12:22:46 +02:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
2022-02-28 20:19:10 +01:00
|
|
|
cron gettext-base rsync ssh sshpass python-minimal libpython-stdlib && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
2016-10-07 12:22:46 +02:00
|
|
|
|
2017-11-22 16:36:03 +01:00
|
|
|
# Avoid overlayfs bug with tail
|
|
|
|
VOLUME /var/log
|
|
|
|
|
2016-10-07 12:22:46 +02:00
|
|
|
WORKDIR /opt/backup
|
2017-11-23 06:08:11 +01:00
|
|
|
COPY crontab ./crontab
|
2016-10-07 12:22:46 +02:00
|
|
|
COPY rsync.template .
|
2021-03-12 19:48:43 +01:00
|
|
|
COPY plan.py .
|
|
|
|
COPY remote.py .
|
2016-10-07 12:22:46 +02:00
|
|
|
COPY launch.sh .
|
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
CMD ["bash", "launch.sh"]
|