-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aec0271
commit ca3a3a1
Showing
16 changed files
with
547 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
37 changes: 37 additions & 0 deletions
37
internal/buildscripts/packaging/tests/deployments/puppet/images/deb/Dockerfile.debian-buster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM debian:buster | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd wget apt-transport-https libcap2-bin curl gnupg lsb-release | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN wget https://apt.puppetlabs.com/puppet${PUPPET_RELEASE}-release-buster.deb && \ | ||
dpkg -i puppet${PUPPET_RELEASE}-release-buster.deb && \ | ||
apt-get update && \ | ||
apt-get install -y puppet-agent | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
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 /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/anaconda.target.wants/*; | ||
|
||
# Keep it from wiping our scratch dir in /tmp/scratch | ||
RUN rm -f /usr/lib/tmpfiles.d/tmp.conf; | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppetlabs-apt --version 7.0.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/sbin/init"] |
37 changes: 37 additions & 0 deletions
37
internal/buildscripts/packaging/tests/deployments/puppet/images/deb/Dockerfile.debian-jessie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM debian:jessie | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd wget apt-transport-https libcap2-bin curl gnupg lsb-release | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN wget https://apt.puppetlabs.com/puppet${PUPPET_RELEASE}-release-jessie.deb && \ | ||
dpkg -i puppet${PUPPET_RELEASE}-release-jessie.deb && \ | ||
apt-get update && \ | ||
apt-get install -y puppet-agent | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
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 /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/anaconda.target.wants/*; | ||
|
||
# Keep it from wiping our scratch dir in /tmp/scratch | ||
RUN rm -f /usr/lib/tmpfiles.d/tmp.conf; | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppetlabs-apt --version 7.0.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/sbin/init"] |
37 changes: 37 additions & 0 deletions
37
...rnal/buildscripts/packaging/tests/deployments/puppet/images/deb/Dockerfile.debian-stretch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM debian:stretch | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd wget apt-transport-https libcap2-bin curl gnupg lsb-release | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN wget https://apt.puppetlabs.com/puppet${PUPPET_RELEASE}-release-stretch.deb && \ | ||
dpkg -i puppet${PUPPET_RELEASE}-release-stretch.deb && \ | ||
apt-get update && \ | ||
apt-get install -y puppet-agent | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
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 /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/anaconda.target.wants/*; | ||
|
||
# Keep it from wiping our scratch dir in /tmp/scratch | ||
RUN rm -f /usr/lib/tmpfiles.d/tmp.conf; | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppetlabs-apt --version 7.0.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENTRYPOINT ["/lib/systemd/systemd"] |
33 changes: 33 additions & 0 deletions
33
internal/buildscripts/packaging/tests/deployments/puppet/images/deb/Dockerfile.ubuntu-bionic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd wget apt-transport-https libcap2-bin curl gnupg lsb-release | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN wget https://apt.puppetlabs.com/puppet${PUPPET_RELEASE}-release-bionic.deb && \ | ||
dpkg -i puppet${PUPPET_RELEASE}-release-bionic.deb && \ | ||
apt-get update && \ | ||
apt-get install -y puppet-agent | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
ENV container docker | ||
|
||
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \ | ||
/etc/systemd/system/*.wants/* \ | ||
/lib/systemd/system/local-fs.target.wants/* \ | ||
/lib/systemd/system/sockets.target.wants/*udev* \ | ||
/lib/systemd/system/sockets.target.wants/*initctl* \ | ||
/lib/systemd/system/systemd-update-utmp* | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppetlabs-apt --version 7.0.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENTRYPOINT ["/lib/systemd/systemd"] |
33 changes: 33 additions & 0 deletions
33
internal/buildscripts/packaging/tests/deployments/puppet/images/deb/Dockerfile.ubuntu-focal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd wget apt-transport-https libcap2-bin curl gnupg lsb-release | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN wget https://apt.puppetlabs.com/puppet${PUPPET_RELEASE}-release-focal.deb && \ | ||
dpkg -i puppet${PUPPET_RELEASE}-release-focal.deb && \ | ||
apt-get update && \ | ||
apt-get install -y puppet-agent | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
ENV container docker | ||
|
||
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \ | ||
/etc/systemd/system/*.wants/* \ | ||
/lib/systemd/system/local-fs.target.wants/* \ | ||
/lib/systemd/system/sockets.target.wants/*udev* \ | ||
/lib/systemd/system/sockets.target.wants/*initctl* \ | ||
/lib/systemd/system/systemd-update-utmp* | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppetlabs-apt --version 7.0.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENTRYPOINT ["/lib/systemd/systemd"] |
33 changes: 33 additions & 0 deletions
33
internal/buildscripts/packaging/tests/deployments/puppet/images/deb/Dockerfile.ubuntu-xenial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -yq ca-certificates procps systemd wget apt-transport-https libcap2-bin curl gnupg lsb-release | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN wget https://apt.puppetlabs.com/puppet${PUPPET_RELEASE}-release-xenial.deb && \ | ||
dpkg -i puppet${PUPPET_RELEASE}-release-xenial.deb && \ | ||
apt-get update && \ | ||
apt-get install -y puppet-agent | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
ENV container docker | ||
|
||
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \ | ||
/etc/systemd/system/*.wants/* \ | ||
/lib/systemd/system/local-fs.target.wants/* \ | ||
/lib/systemd/system/sockets.target.wants/*udev* \ | ||
/lib/systemd/system/sockets.target.wants/*initctl* \ | ||
/lib/systemd/system/systemd-update-utmp* | ||
|
||
RUN systemctl set-default multi-user.target | ||
ENV init /lib/systemd/systemd | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppetlabs-apt --version 7.0.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENTRYPOINT ["/lib/systemd/systemd"] |
29 changes: 29 additions & 0 deletions
29
internal/buildscripts/packaging/tests/deployments/puppet/images/rpm/Dockerfile.amazonlinux-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM amazonlinux:2 | ||
|
||
ENV container docker | ||
|
||
RUN yum install -y systemd procps initscripts | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN rpm -Uvh https://yum.puppet.com/puppet${PUPPET_RELEASE}-release-el-7.noarch.rpm && \ | ||
yum install -y puppet-agent | ||
|
||
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 /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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppet-yum --version 4.3.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
CMD ["/usr/sbin/init"] |
29 changes: 29 additions & 0 deletions
29
internal/buildscripts/packaging/tests/deployments/puppet/images/rpm/Dockerfile.centos-7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM centos:7 | ||
|
||
ENV container docker | ||
|
||
RUN yum install -y systemd procps initscripts | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN rpm -Uvh https://yum.puppet.com/puppet${PUPPET_RELEASE}-release-el-7.noarch.rpm && \ | ||
yum install -y puppet-agent | ||
|
||
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 /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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppet-yum --version 4.3.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
CMD ["/usr/sbin/init"] |
29 changes: 29 additions & 0 deletions
29
internal/buildscripts/packaging/tests/deployments/puppet/images/rpm/Dockerfile.centos-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM centos:8 | ||
|
||
ENV container docker | ||
|
||
RUN dnf install -y systemd procps initscripts | ||
|
||
ARG PUPPET_RELEASE="6" | ||
RUN rpm -Uvh https://yum.puppet.com/puppet${PUPPET_RELEASE}-release-el-8.noarch.rpm && \ | ||
dnf install -y puppet-agent | ||
|
||
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 /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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
ENV PATH=/opt/puppetlabs/bin:$PATH | ||
|
||
RUN puppet module install puppetlabs-stdlib --version 4.24.0 | ||
RUN puppet module install puppet-yum --version 4.3.0 | ||
|
||
COPY deployments/puppet /etc/puppetlabs/code/environments/production/modules/splunk_otel_collector | ||
|
||
CMD ["/usr/sbin/init"] |
Oops, something went wrong.