aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian8-onbuild
diff options
context:
space:
mode:
authorWilliam Yeh <william.pjyeh@gmail.com>2016-05-09 16:34:32 +0800
committerWilliam Yeh <william.pjyeh@gmail.com>2016-05-10 17:17:33 +0800
commit97d48efeb67f4f7566752625ad3ce233f31985be (patch)
tree20ce7984d99bf5f6b770fce81384790027723517 /debian8-onbuild
parentb314855954aa117b1294056891d16f43a6b1b9d0 (diff)
downloaddocker-ansible-97d48efeb67f4f7566752625ad3ce233f31985be.tar.gz
docker-ansible-97d48efeb67f4f7566752625ad3ce233f31985be.tar.zst
docker-ansible-97d48efeb67f4f7566752625ad3ce233f31985be.zip
Add: support for Ubuntu 16.04 LTS (Xenial).
Fix: 1. OS-level packages `libffi-dev` and `libssl-dev`/`openssl-dev` should be installed explicitly since Ansible 2.0.2.0(???). 2. Python package cffi should be installed explicitly since Ansible 2.0.2.0(???). 3. add '--fix-missing' for apt. @see https://github.com/boxcutter/ubuntu/issues/62 @see https://github.com/pyca/cryptography/issues/2280
Diffstat (limited to 'debian8-onbuild')
-rw-r--r--debian8-onbuild/Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/debian8-onbuild/Dockerfile b/debian8-onbuild/Dockerfile
index c5fc227..f21a6b0 100644
--- a/debian8-onbuild/Dockerfile
+++ b/debian8-onbuild/Dockerfile
@@ -13,11 +13,13 @@ MAINTAINER William Yeh <william.pjyeh@gmail.com>
13 13
14 14
15RUN echo "===> Installing python, sudo, and supporting tools..." && \ 15RUN echo "===> Installing python, sudo, and supporting tools..." && \
16 apt-get update && \ 16 apt-get update -y && apt-get install --fix-missing && \
17 DEBIAN_FRONTEND=noninteractive \ 17 DEBIAN_FRONTEND=noninteractive \
18 apt-get install -y \ 18 apt-get install -y \
19 python python-yaml sudo \ 19 python python-yaml sudo \
20 curl gcc python-pip python-dev && \ 20 curl gcc python-pip python-dev libffi-dev libssl-dev && \
21 apt-get -y --purge remove python-cffi && \
22 pip install --upgrade cffi && \
21 \ 23 \
22 \ 24 \
23 echo "===> Installing Ansible..." && \ 25 echo "===> Installing Ansible..." && \
@@ -25,7 +27,8 @@ RUN echo "===> Installing python, sudo, and supporting tools..." && \
25 \ 27 \
26 \ 28 \
27 echo "===> Removing unused APT resources..." && \ 29 echo "===> Removing unused APT resources..." && \
28 apt-get -f -y --auto-remove remove gcc python-pip python-dev && \ 30 apt-get -f -y --auto-remove remove \
31 gcc python-pip python-dev libffi-dev libssl-dev && \
29 apt-get clean && \ 32 apt-get clean && \
30 rm -rf /var/lib/apt/lists/* /tmp/* && \ 33 rm -rf /var/lib/apt/lists/* /tmp/* && \
31 \ 34 \