]> git.immae.eu Git - github/fretlink/docker-ansible.git/blobdiff - master-debian8/Dockerfile
Add: rsync for some Alpine images to make it convenient for "synchronize" module.
[github/fretlink/docker-ansible.git] / master-debian8 / Dockerfile
index 80c28f08a98bc029679037daf1a5f0830c3270a6..f5ea7979c7a87b67885f98587e3aa1109f1ba396 100644 (file)
@@ -12,14 +12,17 @@ FROM debian:jessie
 MAINTAINER William Yeh <william.pjyeh@gmail.com>
 
 
-RUN echo "===> Adding Ansible's prerequisites..."   && \
-    apt-get update -y            && \
+RUN echo "===> Adding Ansible's prerequisites..."         && \
+    apt-get update -y  &&  apt-get install --fix-missing  && \
     DEBIAN_FRONTEND=noninteractive  \
         apt-get install --no-install-recommends -y -q  \
                 build-essential ca-certificates        \
                 python-pip python-dev python-yaml      \
+                libffi-dev libssl-dev                  \
                 libxml2-dev libxslt1-dev zlib1g-dev    \
                 git sudo curl                       && \
+    apt-get -y --purge remove python-cffi           && \
+    pip install --upgrade cffi                      && \
     pip install --upgrade pyyaml jinja2 pycrypto    && \
     \
     \
@@ -40,16 +43,20 @@ RUN echo "===> Adding Ansible's prerequisites..."   && \
     rm -rf /ansible                      && \
     \
     \
-    echo "===> Clean up..."                                         && \
+    echo "===> Installing handy tools (not absolutely required)..."  && \
+    apt-get install -y sshpass openssh-client  && \
+    \
+    \
+    echo "===> Clean up..."                                                  && \
     apt-get remove -y --auto-remove \
-            build-essential python-pip python-dev git               && \
-    apt-get clean                                                   && \
-    rm -rf /var/lib/apt/lists/*                                     && \
+            build-essential python-pip python-dev git libffi-dev libssl-dev  && \
+    apt-get clean                                                            && \
+    rm -rf /var/lib/apt/lists/*                                              && \
     \
     \
     echo "===> Adding hosts for convenience..."  && \
     mkdir -p /etc/ansible                        && \
-    echo '[local]\nlocalhost\n' > /etc/ansible/hosts
+    echo 'localhost' > /etc/ansible/hosts
 
 
 ENV PATH        /opt/ansible/bin:$PATH