added goss

This commit is contained in:
Tobias Trabelsi 2020-10-31 16:47:55 +01:00
parent e312aac855
commit f7b497bfc4
11 changed files with 33 additions and 5 deletions

View File

@ -1,5 +1,7 @@
FROM alpine:3.10 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"] CMD ["ansible-playbook", "--help"]

View File

@ -1,5 +1,7 @@
FROM archlinux/base 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"] CMD ["ansible-playbook", "--help"]

View File

@ -1,7 +1,9 @@
FROM centos:7 FROM centos:7
RUN yum -y install epel-release \ 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 headers \
&& yum clean packages && yum clean packages

View File

@ -2,6 +2,8 @@ FROM centos:8
RUN dnf -y install python3-pip &&\ RUN dnf -y install python3-pip &&\
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\ 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"] CMD ["ansible-playbook", "--help"]

View File

@ -1,7 +1,9 @@
FROM debian:7 FROM debian:7
RUN apt-get -q update \ 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 RUN pip install --index-url=https://pypi.python.org/simple/ --upgrade pip

View File

@ -10,6 +10,9 @@ RUN apt-get -q update \
python-pip \ python-pip \
git \ git \
apt-utils \ 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 \ && apt-get clean \
&& pip install --upgrade pip && pip install --upgrade pip

View File

@ -3,6 +3,9 @@ FROM fedora:24
RUN dnf -y install \ RUN dnf -y install \
ansible \ ansible \
openssh-clients \ 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 && dnf clean all
CMD ["ansible-playbook", "--help"] CMD ["ansible-playbook", "--help"]

View File

@ -9,6 +9,9 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ansible \ ansible \
git \ 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 && apt-get clean
CMD ["ansible-playbook", "--help"] CMD ["ansible-playbook", "--help"]

View File

@ -11,6 +11,9 @@ RUN apt-get update \
python-apt \ python-apt \
git-core \ git-core \
openssh-client \ 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 && apt-get clean
CMD ["ansible-playbook", "--help"] CMD ["ansible-playbook", "--help"]

View File

@ -11,6 +11,9 @@ RUN apt-get update \
python-apt \ python-apt \
git-core \ git-core \
openssh-client \ 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 && apt-get clean
CMD ["ansible-playbook", "--help"] CMD ["ansible-playbook", "--help"]

View File

@ -8,6 +8,9 @@ RUN apt-get update \
python-apt \ python-apt \
git-core \ git-core \
openssh-client \ 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 && apt-get clean
CMD ["ansible-playbook", "--help"] CMD ["ansible-playbook", "--help"]