diff --git a/centos-7/Dockerfile b/centos-7/Dockerfile index 3f2c623..2e900eb 100644 --- a/centos-7/Dockerfile +++ b/centos-7/Dockerfile @@ -1,7 +1,7 @@ FROM centos:7 RUN yum -y install epel-release \ - && yum -y install ansible git curl \ + && yum -y install ansible git curl python-firewall \ && curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \ && chmod +rx /usr/local/bin/goss \ && yum clean headers \ diff --git a/centos-8/Dockerfile b/centos-8/Dockerfile index cb1d02a..390d20d 100644 --- a/centos-8/Dockerfile +++ b/centos-8/Dockerfile @@ -4,6 +4,8 @@ RUN dnf -y install python3-pip &&\ dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\ dnf install -y --enablerepo epel-playground ansible curl \ && curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \ - && chmod +rx /usr/local/bin/goss + && chmod +rx /usr/local/bin/goss \ + && touch ~/.netrc && chmod og-rw ~/.netrc \ + pip3 install firewall CMD ["ansible-playbook", "--help"] diff --git a/debian-10/Dockerfile b/debian-10/Dockerfile index b07b4b3..7b454ef 100644 --- a/debian-10/Dockerfile +++ b/debian-10/Dockerfile @@ -12,6 +12,7 @@ RUN apt-get -q update \ apt-utils \ curl \ ansible \ + python \ && curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \ && chmod +rx /usr/local/bin/goss \ && apt-get clean diff --git a/debian-9/Dockerfile b/debian-9/Dockerfile index e713247..c2bcb8b 100644 --- a/debian-9/Dockerfile +++ b/debian-9/Dockerfile @@ -11,11 +11,16 @@ RUN apt-get -q update \ git \ apt-utils \ curl \ - ansible \ + gnupg \ + dirmngr \ && curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \ && chmod +rx /usr/local/bin/goss \ - && apt-get clean \ && pip3 install --upgrade pip +RUN echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources \ + && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 \ + && apt-get -q update \ + && apt-get install -yq ansible \ + && apt-get clean CMD ["ansible-playbook", "--help"]