From f7b497bfc4d63e5b4b487bc7dc26277dcd05c2ef Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sat, 31 Oct 2020 16:47:55 +0100 Subject: [PATCH] added goss --- alpine-3/Dockerfile | 4 +++- arch/Dockerfile | 4 +++- centos-7/Dockerfile | 4 +++- centos-8/Dockerfile | 4 +++- debian-7/Dockerfile | 4 +++- debian-8/Dockerfile | 3 +++ fedora-24/Dockerfile | 3 +++ ubuntu-14.04/Dockerfile | 3 +++ ubuntu-16.04/Dockerfile | 3 +++ ubuntu-18.04/Dockerfile | 3 +++ ubuntu-20.04/Dockerfile | 3 +++ 11 files changed, 33 insertions(+), 5 deletions(-) diff --git a/alpine-3/Dockerfile b/alpine-3/Dockerfile index 97ad216..dc0dd71 100644 --- a/alpine-3/Dockerfile +++ b/alpine-3/Dockerfile @@ -1,5 +1,7 @@ FROM alpine:3.10 -RUN apk add --no-cache ansible +RUN apk add --no-cache 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 CMD ["ansible-playbook", "--help"] diff --git a/arch/Dockerfile b/arch/Dockerfile index 9009c23..526a908 100644 --- a/arch/Dockerfile +++ b/arch/Dockerfile @@ -1,5 +1,7 @@ FROM archlinux/base -RUN pacman -Syuu --noconfirm && pacman -S python ansible sshpass git python-passlib python-netaddr --noconfirm +RUN pacman -Syuu --noconfirm && pacman -S python ansible sshpass git python-passlib python-netaddr curl --noconfirm \ + && curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \ + && chmod +rx /usr/local/bin/goss CMD ["ansible-playbook", "--help"] diff --git a/centos-7/Dockerfile b/centos-7/Dockerfile index 0568e71..3f2c623 100644 --- a/centos-7/Dockerfile +++ b/centos-7/Dockerfile @@ -1,7 +1,9 @@ FROM centos:7 RUN yum -y install epel-release \ - && yum -y install ansible git \ + && yum -y install ansible git 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 \ && yum clean headers \ && yum clean packages diff --git a/centos-8/Dockerfile b/centos-8/Dockerfile index 8775750..cb1d02a 100644 --- a/centos-8/Dockerfile +++ b/centos-8/Dockerfile @@ -2,6 +2,8 @@ FROM centos: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 + 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 CMD ["ansible-playbook", "--help"] diff --git a/debian-7/Dockerfile b/debian-7/Dockerfile index 80897de..a3c6d26 100644 --- a/debian-7/Dockerfile +++ b/debian-7/Dockerfile @@ -1,7 +1,9 @@ FROM debian:7 RUN apt-get -q update \ - && apt-get install -y python-pip python-dev git apt-utils + && apt-get install -y python-pip python-dev git apt-utils 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 RUN pip install --index-url=https://pypi.python.org/simple/ --upgrade pip diff --git a/debian-8/Dockerfile b/debian-8/Dockerfile index 5176f9c..c8fefa9 100644 --- a/debian-8/Dockerfile +++ b/debian-8/Dockerfile @@ -10,6 +10,9 @@ RUN apt-get -q update \ python-pip \ git \ apt-utils \ + 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 \ && apt-get clean \ && pip install --upgrade pip diff --git a/fedora-24/Dockerfile b/fedora-24/Dockerfile index cc2bf57..8909df3 100644 --- a/fedora-24/Dockerfile +++ b/fedora-24/Dockerfile @@ -3,6 +3,9 @@ FROM fedora:24 RUN dnf -y install \ ansible \ openssh-clients \ + 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 \ && dnf clean all CMD ["ansible-playbook", "--help"] diff --git a/ubuntu-14.04/Dockerfile b/ubuntu-14.04/Dockerfile index d02f938..03131fa 100644 --- a/ubuntu-14.04/Dockerfile +++ b/ubuntu-14.04/Dockerfile @@ -9,6 +9,9 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends \ ansible \ git \ + 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 \ && apt-get clean CMD ["ansible-playbook", "--help"] diff --git a/ubuntu-16.04/Dockerfile b/ubuntu-16.04/Dockerfile index 7dd1238..af14a6d 100644 --- a/ubuntu-16.04/Dockerfile +++ b/ubuntu-16.04/Dockerfile @@ -11,6 +11,9 @@ RUN apt-get update \ python-apt \ git-core \ openssh-client \ + 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 \ && apt-get clean CMD ["ansible-playbook", "--help"] diff --git a/ubuntu-18.04/Dockerfile b/ubuntu-18.04/Dockerfile index 0a24386..796cb48 100644 --- a/ubuntu-18.04/Dockerfile +++ b/ubuntu-18.04/Dockerfile @@ -11,6 +11,9 @@ RUN apt-get update \ python-apt \ git-core \ openssh-client \ + 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 \ && apt-get clean CMD ["ansible-playbook", "--help"] diff --git a/ubuntu-20.04/Dockerfile b/ubuntu-20.04/Dockerfile index 23e9060..55fa1ce 100644 --- a/ubuntu-20.04/Dockerfile +++ b/ubuntu-20.04/Dockerfile @@ -8,6 +8,9 @@ RUN apt-get update \ python-apt \ git-core \ openssh-client \ + 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 \ && apt-get clean CMD ["ansible-playbook", "--help"]