You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.raspbian 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. FROM resin/rpi-raspbian:jessie
  2. MAINTAINER ViViDboarder <vividboarder@gmail.com>
  3. RUN [ "cross-build-start" ]
  4. RUN apt-get update \
  5. && apt-get install -y --no-install-recommends \
  6. cron \
  7. duplicity \
  8. lftp \
  9. ncftp \
  10. openssh-client \
  11. python-cloudfiles \
  12. python-gdata \
  13. python-oauthlib \
  14. python-paramiko \
  15. python-pexpect \
  16. python-pip \
  17. python-urllib3 \
  18. rsync \
  19. tahoe-lafs \
  20. && pip install -U setuptools \
  21. && pip install -U boto b2 \
  22. && apt-get remove -y python-pip \
  23. && apt-get install -y --no-install-recommends \
  24. python-swiftclient \
  25. && rm -rf /var/apt/lists/*
  26. RUN [ "cross-build-end" ]
  27. VOLUME /root/.cache/duplicity
  28. VOLUME /backups
  29. VOLUME /var/lock/duplicity
  30. ENV BACKUP_DEST="file:///backups"
  31. ENV BACKUP_NAME="backup"
  32. ENV PATH_TO_BACKUP="/data"
  33. ENV PASSPHRASE="Correct.Horse.Battery.Staple"
  34. ENV FLOCK_WAIT=60
  35. # Cron schedules
  36. ENV CRON_SCHEDULE=""
  37. ENV FULL_CRON_SCHEDULE=""
  38. ENV VERIFY_CRON_SCHEDULE=""
  39. # Create script dirs
  40. RUN mkdir -p /scripts/backup/before
  41. RUN mkdir -p /scripts/backup/after
  42. RUN mkdir -p /scripts/restore/before
  43. RUN mkdir -p /scripts/restore/after
  44. COPY backup.sh /
  45. COPY restore.sh /
  46. COPY start.sh /
  47. COPY verify.sh /
  48. COPY healthcheck.sh /
  49. COPY cron-exec.sh /
  50. HEALTHCHECK CMD /healthcheck.sh
  51. CMD [ "/start.sh" ]