From 819c3a60ea7746df2f716358e578f8f175c4343f Mon Sep 17 00:00:00 2001 From: Lerentis Date: Thu, 18 Jan 2018 23:56:35 +0100 Subject: [PATCH] Fixed Debian 7 and 8 and Centos7 Dockerfile --- centos-7/Dockerfile | 2 +- debian-7/Dockerfile | 15 +++++---------- debian-8/Dockerfile | 6 ++++-- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/centos-7/Dockerfile b/centos-7/Dockerfile index 37615b8..3fedc25 100644 --- a/centos-7/Dockerfile +++ b/centos-7/Dockerfile @@ -1,6 +1,6 @@ FROM centos:7 -RUN rpm -iU https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm \ +RUN yum -y install epel-release \ && yum -y install ansible \ && yum clean headers \ && yum clean packages diff --git a/debian-7/Dockerfile b/debian-7/Dockerfile index fe64f54..2dbfea4 100644 --- a/debian-7/Dockerfile +++ b/debian-7/Dockerfile @@ -1,15 +1,10 @@ FROM debian:7 RUN apt-get -q update \ - && apt-get -yq install --no-install-recommends \ - build-essential \ - libffi-dev \ - libssl-dev \ - python \ - python-dev \ - python-pip \ - && apt-get clean \ - && pip install --quiet --upgrade setuptools \ - && pip install --quiet --upgrade ansible + && apt-get install -y python-pip python-dev git + +RUN pip install --index-url=https://pypi.python.org/simple/ --upgrade pip + +RUN pip install git+https://github.com/ansible/ansible.git@devel CMD ["ansible-playbook", "--help"] diff --git a/debian-8/Dockerfile b/debian-8/Dockerfile index 0ff6e32..b38501f 100644 --- a/debian-8/Dockerfile +++ b/debian-8/Dockerfile @@ -8,8 +8,10 @@ RUN apt-get -q update \ python \ python-dev \ python-pip \ + git \ && apt-get clean \ - && pip install --quiet --upgrade \ - ansible + && pip install --upgrade pip + +RUN pip install git+https://github.com/ansible/ansible.git@devel CMD ["ansible-playbook", "--help"]