summaryrefslogtreecommitdiff
path: root/images/backup/duplicity/Dockerfile
diff options
context:
space:
mode:
authorTill Höppner2017-05-31 18:00:15 +0200
committerTill Höppner2017-05-31 18:00:15 +0200
commit33c2361ab6f0d7bfc802d2fc10d2f29aef44867b (patch)
tree706f4c46e942433eb13cba20cedd816bb07226ae /images/backup/duplicity/Dockerfile
parentc20a9f58eb362ad84a1f0e3b911b89ffc9bf8451 (diff)
downloadserver-33c2361ab6f0d7bfc802d2fc10d2f29aef44867b.tar.gz
server-33c2361ab6f0d7bfc802d2fc10d2f29aef44867b.tar.xz
server-33c2361ab6f0d7bfc802d2fc10d2f29aef44867b.zip
Add backup image
Diffstat (limited to 'images/backup/duplicity/Dockerfile')
-rw-r--r--images/backup/duplicity/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/images/backup/duplicity/Dockerfile b/images/backup/duplicity/Dockerfile
new file mode 100644
index 0000000..9ce6d6b
--- /dev/null
+++ b/images/backup/duplicity/Dockerfile
@@ -0,0 +1,16 @@
+FROM alpine:3.5
+
+RUN apk add --update duplicity ca-certificates gnupg openssh-client py-paramiko py2-pip
+
+RUN pip install --upgrade setuptools
+RUN pip install --upgrade distribute
+
+ADD backup.sh /backup.sh
+ADD restore.sh /restore.sh
+
+RUN mkdir /root/.gnupg/
+ADD gpg-agent.conf /root/.gnupg/gpg-agent.conf
+RUN chmod 600 /root/.gnupg
+
+RUN mkdir /root/.ssh
+RUN chmod 600 /root/.ssh