23
23
#Setting a working directory for everything else
26
# Installing some pre-requisites
27
RUN apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*
28
RUN sudo apt-get update
30
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
32
RUN apt-get install -y software-properties-common python-software-properties
34
# The following packages are needed for testing duplicity
35
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python2.7
36
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-dev
37
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install librsync-dev
38
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install lftp
39
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install par2
40
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install bzr
41
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-setuptools
42
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip
43
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install openssl
44
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libssl-dev
45
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install intltool
46
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install rdiff
48
#Need to make gpg2 the default gpg
49
RUN mv /usr/bin/gpg /usr/bin/gpg1
50
RUN ln -s /usr/bin/gpg2 /usr/bin/gpg
26
# Installing some pre-requisites and some
27
# packages needed for testing duplicity
28
RUN apt-get update && apt-get install -y \
40
&& rm -rf /var/lib/apt/lists/*
42
# Need to make gpg2 the default gpg
43
RUN mv /usr/bin/gpg /usr/bin/gpg1 && ln -s /usr/bin/gpg2 /usr/bin/gpg
46
RUN curl https://bootstrap.pypa.io/get-pip.py | python
48
# Installing requirements for pip
49
RUN pip install --requirement requirements.txt
52
51
# Branch the duplicity repo for testing
53
52
RUN bzr branch --use-existing-dir lp:duplicity /duplicity
56
RUN pip install --upgrade pip
58
# Installing requirements for pip
59
RUN pip install -r requirements.txt