Fixed Debian 7 and 8 and Centos7 Dockerfile
This commit is contained in:
parent
23ac92e255
commit
819c3a60ea
@ -1,6 +1,6 @@
|
|||||||
FROM centos:7
|
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 -y install ansible \
|
||||||
&& yum clean headers \
|
&& yum clean headers \
|
||||||
&& yum clean packages
|
&& yum clean packages
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
FROM debian:7
|
FROM debian:7
|
||||||
|
|
||||||
RUN apt-get -q update \
|
RUN apt-get -q update \
|
||||||
&& apt-get -yq install --no-install-recommends \
|
&& apt-get install -y python-pip python-dev git
|
||||||
build-essential \
|
|
||||||
libffi-dev \
|
RUN pip install --index-url=https://pypi.python.org/simple/ --upgrade pip
|
||||||
libssl-dev \
|
|
||||||
python \
|
RUN pip install git+https://github.com/ansible/ansible.git@devel
|
||||||
python-dev \
|
|
||||||
python-pip \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& pip install --quiet --upgrade setuptools \
|
|
||||||
&& pip install --quiet --upgrade ansible
|
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--help"]
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
@ -8,8 +8,10 @@ RUN apt-get -q update \
|
|||||||
python \
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
git \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& pip install --quiet --upgrade \
|
&& pip install --upgrade pip
|
||||||
ansible
|
|
||||||
|
RUN pip install git+https://github.com/ansible/ansible.git@devel
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--help"]
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
Loading…
Reference in New Issue
Block a user