diff options
Diffstat (limited to 'ansible_collections/sensu/sensu_go/docker')
26 files changed, 214 insertions, 0 deletions
diff --git a/ansible_collections/sensu/sensu_go/docker/alma-8.docker b/ansible_collections/sensu/sensu_go/docker/alma-8.docker new file mode 100644 index 00000000..88326b2f --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/alma-8.docker @@ -0,0 +1,6 @@ +FROM almalinux:8 +RUN dnf makecache \ + && dnf install -y \ + /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 \ + sudo bash iproute \ + && dnf clean all diff --git a/ansible_collections/sensu/sensu_go/docker/amazon-1.docker b/ansible_collections/sensu/sensu_go/docker/amazon-1.docker new file mode 100644 index 00000000..f6316c35 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/amazon-1.docker @@ -0,0 +1,9 @@ +FROM amazonlinux:1 +ENV container docker +RUN \ + yum makecache fast; \ + yum install -y \ + /usr/bin/python /usr/bin/python2-config sudo \ + yum-plugin-ovl bash iproute shadow-utils; \ + sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf; \ + yum clean all diff --git a/ansible_collections/sensu/sensu_go/docker/amazon-2.docker b/ansible_collections/sensu/sensu_go/docker/amazon-2.docker new file mode 100644 index 00000000..734c3c95 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/amazon-2.docker @@ -0,0 +1,9 @@ +FROM amazonlinux:2 +ENV container docker +RUN \ + yum makecache fast; \ + yum install -y \ + /usr/bin/python /usr/bin/python2-config sudo \ + yum-plugin-ovl bash iproute shadow-utils; \ + sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf; \ + yum clean all diff --git a/ansible_collections/sensu/sensu_go/docker/build-all.sh b/ansible_collections/sensu/sensu_go/docker/build-all.sh new file mode 100755 index 00000000..dae03194 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/build-all.sh @@ -0,0 +1,8 @@ +#!/bin/bash -eu + +set -o pipefail + +for f in *.docker +do + ./build.sh "$f" +done diff --git a/ansible_collections/sensu/sensu_go/docker/build.sh b/ansible_collections/sensu/sensu_go/docker/build.sh new file mode 100755 index 00000000..a6c56fcb --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash -eu + +set -o pipefail + +readonly filename="$1"; shift + +readonly base=${filename%.docker} +readonly name=${base%-*} +readonly version=${base##*-} +readonly tag="quay.io/xlab-steampunk/sensu-go-tests-$name:$version" + +docker build --pull -f "$filename" -t "$tag" . +docker push "$tag" diff --git a/ansible_collections/sensu/sensu_go/docker/centos-6.docker b/ansible_collections/sensu/sensu_go/docker/centos-6.docker new file mode 100644 index 00000000..1e7ec0e4 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/centos-6.docker @@ -0,0 +1,7 @@ +FROM centos:6 +RUN yum makecache fast \ + && yum install -y \ + /usr/bin/python /usr/bin/python2-config sudo \ + yum-plugin-ovl bash iproute \ + && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf \ + && yum clean all diff --git a/ansible_collections/sensu/sensu_go/docker/centos-7.docker b/ansible_collections/sensu/sensu_go/docker/centos-7.docker new file mode 100644 index 00000000..c11f9b55 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/centos-7.docker @@ -0,0 +1,25 @@ +FROM centos:7 +ENV container docker +RUN ( \ + cd /lib/systemd/system/sysinit.target.wants/; \ + for i in *; do \ + [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; \ + done \ + ); \ + rm -f /lib/systemd/system/multi-user.target.wants/*;\ + rm -f /etc/systemd/system/*.wants/*;\ + rm -f /lib/systemd/system/local-fs.target.wants/*; \ + rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ + rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ + rm -f /lib/systemd/system/basic.target.wants/*;\ + rm -f /lib/systemd/system/anaconda.target.wants/*; \ + yum makecache fast; \ + yum install -y \ + /usr/bin/python /usr/bin/python2-config sudo \ + yum-plugin-ovl bash iproute; \ + sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf; \ + yum clean all; \ + chmod 777 /root; + +VOLUME [ "/sys/fs/cgroup" ] +CMD [ "/usr/sbin/init" ] diff --git a/ansible_collections/sensu/sensu_go/docker/centos-8.docker b/ansible_collections/sensu/sensu_go/docker/centos-8.docker new file mode 100644 index 00000000..11ceae57 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/centos-8.docker @@ -0,0 +1,6 @@ +FROM centos:8 +RUN dnf makecache \ + && dnf install -y \ + /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 \ + sudo bash iproute \ + && dnf clean all diff --git a/ansible_collections/sensu/sensu_go/docker/debian-10.docker b/ansible_collections/sensu/sensu_go/docker/debian-10.docker new file mode 100644 index 00000000..c53007c0 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/debian-10.docker @@ -0,0 +1,8 @@ +FROM debian:10 +RUN apt-get update \ + && apt-get install -y \ + python sudo bash ca-certificates iproute2 python-apt aptitude \ + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /usr/share/doc \ + && rm -rf /usr/share/man \ + && apt-get clean diff --git a/ansible_collections/sensu/sensu_go/docker/debian-9.docker b/ansible_collections/sensu/sensu_go/docker/debian-9.docker new file mode 100644 index 00000000..a0013d77 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/debian-9.docker @@ -0,0 +1,5 @@ +FROM debian:9 +RUN apt-get update \ + && apt-get install -y \ + python sudo bash ca-certificates iproute2 python-apt aptitude \ + && apt-get clean diff --git a/ansible_collections/sensu/sensu_go/docker/oracle-8.docker b/ansible_collections/sensu/sensu_go/docker/oracle-8.docker new file mode 100644 index 00000000..c63a2bf7 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/oracle-8.docker @@ -0,0 +1,6 @@ +FROM oraclelinux:8 +RUN dnf makecache \ + && dnf install -y \ + /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 \ + sudo bash iproute \ + && dnf clean all diff --git a/ansible_collections/sensu/sensu_go/docker/redhat-7.docker b/ansible_collections/sensu/sensu_go/docker/redhat-7.docker new file mode 100644 index 00000000..f48b1701 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/redhat-7.docker @@ -0,0 +1,7 @@ +FROM registry.access.redhat.com/ubi7/ubi-init:latest +RUN yum makecache fast \ + && yum install -y \ + /usr/bin/python /usr/bin/python2-config sudo \ + yum-plugin-ovl bash iproute \ + && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf \ + && yum clean all diff --git a/ansible_collections/sensu/sensu_go/docker/rocky-8.docker b/ansible_collections/sensu/sensu_go/docker/rocky-8.docker new file mode 100644 index 00000000..b9e149a8 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/rocky-8.docker @@ -0,0 +1,6 @@ +FROM rockylinux:8 +RUN dnf makecache \ + && dnf install -y \ + /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 \ + sudo bash iproute \ + && dnf clean all diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-5.14.2.docker b/ansible_collections/sensu/sensu_go/docker/sensu-5.14.2.docker new file mode 100644 index 00000000..ec833991 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-5.14.2.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:5.14.2 +RUN apk update \ + && apk add --no-cache python sudo bash ca-certificates +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-5.21.3.docker b/ansible_collections/sensu/sensu_go/docker/sensu-5.21.3.docker new file mode 100644 index 00000000..023f33c8 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-5.21.3.docker @@ -0,0 +1,9 @@ +FROM sensu/sensu:5.21.3 +RUN apk update \ + && apk add --no-cache python sudo bash ca-certificates \ + py-bcrypt py-six py-cffi +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.2.5.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.2.5.docker new file mode 100644 index 00000000..9fd19072 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.2.5.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.2.5 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.3.0.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.3.0.docker new file mode 100644 index 00000000..12399d3b --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.3.0.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.3.0 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.4.3.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.4.3.docker new file mode 100644 index 00000000..7afcd120 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.4.3.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.4.3 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.5.5.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.5.5.docker new file mode 100644 index 00000000..1ceea051 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.5.5.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.5.5 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.6.2.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.6.2.docker new file mode 100644 index 00000000..613e7c28 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.6.2.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.6.2 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.7.5.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.7.5.docker new file mode 100644 index 00000000..058ea335 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.7.5.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.7.5 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.8.2.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.8.2.docker new file mode 100644 index 00000000..12228196 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.8.2.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.8.2 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/sensu-6.9.0.docker b/ansible_collections/sensu/sensu_go/docker/sensu-6.9.0.docker new file mode 100644 index 00000000..c0d99556 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/sensu-6.9.0.docker @@ -0,0 +1,8 @@ +FROM sensu/sensu:6.9.0 +RUN apk update \ + && apk add --no-cache python3 py3-bcrypt py3-six py3-cffi bash +CMD [ \ + "sensu-backend", "start", \ + "--state-dir", "/var/lib/sensu/sensu-backend", \ + "--log-level", "debug" \ +] diff --git a/ansible_collections/sensu/sensu_go/docker/ubuntu-14.04.docker b/ansible_collections/sensu/sensu_go/docker/ubuntu-14.04.docker new file mode 100644 index 00000000..720f50d4 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/ubuntu-14.04.docker @@ -0,0 +1,8 @@ +FROM ubuntu:14.04 +RUN rm \ + /etc/apt/apt.conf.d/20apt-esm-hook.conf \ + /etc/apt/sources.list.d/ubuntu-esm-infra-trusty.list \ + && apt-get update \ + && apt-get install -y \ + python sudo bash ca-certificates iproute2 python-apt aptitude \ + && apt-get clean diff --git a/ansible_collections/sensu/sensu_go/docker/ubuntu-16.04.docker b/ansible_collections/sensu/sensu_go/docker/ubuntu-16.04.docker new file mode 100644 index 00000000..37a96a02 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/ubuntu-16.04.docker @@ -0,0 +1,5 @@ +FROM ubuntu:16.04 +RUN apt-get update \ + && apt-get install -y \ + python sudo bash ca-certificates iproute2 python-apt aptitude \ + && apt-get clean diff --git a/ansible_collections/sensu/sensu_go/docker/ubuntu-18.04.docker b/ansible_collections/sensu/sensu_go/docker/ubuntu-18.04.docker new file mode 100644 index 00000000..7d6230af --- /dev/null +++ b/ansible_collections/sensu/sensu_go/docker/ubuntu-18.04.docker @@ -0,0 +1,5 @@ +FROM ubuntu:18.04 +RUN apt-get update \ + && apt-get install -y \ + python sudo bash ca-certificates iproute2 python-apt aptitude \ + && apt-get clean |