mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-12-22 11:17:37 +00:00
137d32c575
As handy as cross-build-start is for building arm images on an x86 machine, it actually causes building to fail when on an arm machine. Added an or statement to allow it to build on my rpi as well as my laptop.
46 lines
1.1 KiB
Docker
46 lines
1.1 KiB
Docker
FROM resin/rpi-raspbian:jessie
|
|
MAINTAINER ViViDboarder <vividboarder@gmail.com>
|
|
|
|
RUN cross-build-start || true
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
duplicity python-setuptools cron python-pexpect openssh-client \
|
|
lftp \
|
|
ncftp \
|
|
python-cloudfiles \
|
|
python-gdata \
|
|
python-oauthlib \
|
|
python-paramiko \
|
|
python-urllib3 \
|
|
rsync \
|
|
tahoe-lafs \
|
|
python-pip \
|
|
&& pip install -U boto \
|
|
&& apt-get remove -y python-pip \
|
|
&& apt-get install -y --no-install-recommends \
|
|
python-swiftclient \
|
|
&& rm -rf /var/apt/lists/*
|
|
|
|
RUN cross-build-end || true
|
|
|
|
VOLUME "/root/.cache/duplicity"
|
|
VOLUME "/backups"
|
|
|
|
ENV BACKUP_DEST="file:///backups"
|
|
ENV BACKUP_NAME="backup"
|
|
ENV PATH_TO_BACKUP="/data"
|
|
ENV PASSPHRASE="Correct.Horse.Battery.Staple"
|
|
|
|
# Cron schedules
|
|
ENV CRON_SCHEDULE=""
|
|
ENV FULL_CRON_SCHEDULE=""
|
|
ENV VERIFY_CRON_SCHEDULE=""
|
|
|
|
ADD backup.sh /
|
|
ADD entrypoint.sh /
|
|
ADD restore.sh /
|
|
ADD verify.sh /
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|