forked from silvio/docker-borgbackup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (39 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM debian:jessie
MAINTAINER Alphazo <alphazo@gmail.com>
# Original Dockerfile from Silvio Fricke <silvio.fricke@gmail.com>
# Updated to v1.0.6
VOLUME /sourcedir /backupdir
WORKDIR /borg
ENTRYPOINT ["/usr/bin/borgctrl.sh"]
CMD ["--help"]
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -y \
&& apt-get install -y \
build-essential \
fakeroot \
fuse \
git-core \
libacl1 \
libacl1-dev \
libssl-dev \
openssl \
python-virtualenv \
python3-dev \
liblz4-dev \
python-lz4 \
&& apt-get clean -y
RUN git clone git://github.com/wallyhall/shini.git \
&& cp shini/shini.sh /usr/bin/shini \
&& chmod a+x /usr/bin/shini
RUN virtualenv --python=python3 borg-env ; \
. borg-env/bin/activate ; \
pip install --upgrade pip ; \
pip install cython ; \
pip install tox
ADD adds/borgctrl.sh /usr/bin/borgctrl.sh
RUN chmod a+x /usr/bin/borgctrl.sh
# the "git clone" is cached, we need to invalidate the docker cache here
ADD http://www.random.org/strings/?num=1&len=10&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new uuid
RUN git clone https://github.com/borgbackup/borg.git borg-git -b master; \
. borg-env/bin/activate ; \
pip install -e borg-git