~dernils/duplicity/DockerfileConvenience

« back to all changes in this revision

Viewing changes to Dockerfile

  • Committer: ken
  • Date: 2017-04-28 18:59:37 UTC
  • Revision ID: ken-20170428185937-upmhg7mw1q1cqr6r
- Simplify Dockerfile per https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
- Add a .dockerignore file
- Uncomment some debug prints
- quick fix for bug #1680682 and gnupg v1, add missing comma

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#Setting a working directory for everything else
24
24
WORKDIR /duplicity
25
25
 
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
29
 
 
30
 
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
31
 
 
32
 
RUN apt-get install -y software-properties-common python-software-properties
33
 
 
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
47
 
 
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 \
 
29
            build-essential \
 
30
            bzr \
 
31
            intltool \
 
32
            lftp \
 
33
            libffi-dev \
 
34
            librsync-dev \
 
35
            libssl-dev \
 
36
            openssl \
 
37
            par2 \
 
38
            python-dev \
 
39
            rdiff \
 
40
    && rm -rf /var/lib/apt/lists/*
 
41
 
 
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
 
44
 
 
45
# Installing pip
 
46
RUN curl https://bootstrap.pypa.io/get-pip.py | python
 
47
 
 
48
# Installing requirements for pip
 
49
RUN pip install --requirement requirements.txt
51
50
 
52
51
# Branch the duplicity repo for testing
53
52
RUN bzr branch --use-existing-dir lp:duplicity /duplicity
54
 
 
55
 
#Installing pip
56
 
RUN pip install --upgrade pip
57
 
 
58
 
# Installing requirements for pip
59
 
RUN pip install -r requirements.txt