diff options
author | William Yeh <william.pjyeh@gmail.com> | 2016-05-09 16:34:32 +0800 |
---|---|---|
committer | William Yeh <william.pjyeh@gmail.com> | 2016-05-10 17:17:33 +0800 |
commit | 97d48efeb67f4f7566752625ad3ce233f31985be (patch) | |
tree | 20ce7984d99bf5f6b770fce81384790027723517 /master-debian8-onbuild | |
parent | b314855954aa117b1294056891d16f43a6b1b9d0 (diff) | |
download | docker-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 'master-debian8-onbuild')
-rw-r--r-- | master-debian8-onbuild/Dockerfile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/master-debian8-onbuild/Dockerfile b/master-debian8-onbuild/Dockerfile index 19d4934..c9ce493 100644 --- a/master-debian8-onbuild/Dockerfile +++ b/master-debian8-onbuild/Dockerfile | |||
@@ -12,14 +12,17 @@ FROM debian:jessie | |||
12 | MAINTAINER William Yeh <william.pjyeh@gmail.com> | 12 | MAINTAINER William Yeh <william.pjyeh@gmail.com> |
13 | 13 | ||
14 | 14 | ||
15 | RUN echo "===> Adding Ansible's prerequisites..." && \ | 15 | RUN echo "===> Adding Ansible's prerequisites..." && \ |
16 | apt-get update -y && \ | 16 | apt-get update -y && apt-get install --fix-missing && \ |
17 | DEBIAN_FRONTEND=noninteractive \ | 17 | DEBIAN_FRONTEND=noninteractive \ |
18 | apt-get install --no-install-recommends -y -q \ | 18 | apt-get install --no-install-recommends -y -q \ |
19 | build-essential ca-certificates \ | 19 | build-essential ca-certificates \ |
20 | python-pip python-dev python-yaml \ | 20 | python-pip python-dev python-yaml \ |
21 | libffi-dev libssl-dev \ | ||
21 | libxml2-dev libxslt1-dev zlib1g-dev \ | 22 | libxml2-dev libxslt1-dev zlib1g-dev \ |
22 | git sudo curl && \ | 23 | git sudo curl && \ |
24 | apt-get -y --purge remove python-cffi && \ | ||
25 | pip install --upgrade cffi && \ | ||
23 | pip install --upgrade pyyaml jinja2 pycrypto && \ | 26 | pip install --upgrade pyyaml jinja2 pycrypto && \ |
24 | \ | 27 | \ |
25 | \ | 28 | \ |
@@ -40,11 +43,11 @@ RUN echo "===> Adding Ansible's prerequisites..." && \ | |||
40 | rm -rf /ansible && \ | 43 | rm -rf /ansible && \ |
41 | \ | 44 | \ |
42 | \ | 45 | \ |
43 | echo "===> Clean up..." && \ | 46 | echo "===> Clean up..." && \ |
44 | apt-get remove -y --auto-remove \ | 47 | apt-get remove -y --auto-remove \ |
45 | build-essential python-pip python-dev git && \ | 48 | build-essential python-pip python-dev git libffi-dev libssl-dev && \ |
46 | apt-get clean && \ | 49 | apt-get clean && \ |
47 | rm -rf /var/lib/apt/lists/* && \ | 50 | rm -rf /var/lib/apt/lists/* && \ |
48 | \ | 51 | \ |
49 | \ | 52 | \ |
50 | echo "===> Adding hosts for convenience..." && \ | 53 | echo "===> Adding hosts for convenience..." && \ |