forked from signalfx/splunk-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Fix packaging and salt tests (signalfx#5611)
* Update salt deployment and packaging instrumentation tests * correct arg for selecting pkgmgr * fix dockerfiles * rm suse 12 * pkg updates for suse
- Loading branch information
Showing
27 changed files
with
188 additions
and
543 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
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
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
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,25 @@ | ||
receivers: | ||
signalfx: | ||
endpoint: 0.0.0.0:9943 | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4317 | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
|
||
exporters: | ||
file: | ||
path: /tmp/out | ||
|
||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [signalfx, otlp] | ||
exporters: [file] | ||
logs: | ||
receivers: [otlp] | ||
exporters: [file] | ||
traces: | ||
receivers: [otlp] | ||
exporters: [file] |
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
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
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,62 @@ | ||
|
||
ARG DISTRO_IMAGE=amazonlinux:2023 | ||
FROM ${DISTRO_IMAGE} | ||
|
||
# args before FROM are not available | ||
ARG DISTRO_IMAGE | ||
ARG PKG_MGR=dnf | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV SALT_VERSION=latest | ||
ENV NODE_VERSION=16.20.2 | ||
ENV container=docker | ||
|
||
# config for centos | ||
RUN if [[ ${DISTRO_IMAGE} =~ "centos" ]] ; then \ | ||
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial && \ | ||
echo 'fastestmirror=1' >> /etc/yum.conf; \ | ||
fi | ||
|
||
# config for centos8 | ||
RUN if [[ ${DISTRO_IMAGE} =~ "centos:stream8" ]] ; then \ | ||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \ | ||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*; \ | ||
fi | ||
|
||
# additional packages for suse | ||
RUN if [[ ${DISTRO_IMAGE} =~ "opensuse" ]] ; then \ | ||
${PKG_MGR} install -y dbus-1 systemd-sysvinit gzip; \ | ||
fi | ||
|
||
RUN ${PKG_MGR} install -y systemd procps python3-pip python3-devel gcc wget tar | ||
|
||
RUN if [ ${PKG_MGR} != "zypper" ]; then \ | ||
wget -O /etc/yum.repos.d/salt.repo -q https://github.com/saltstack/salt-install-guide/releases/${SALT_VERSION}/download/salt.repo; fi | ||
RUN if [ ${PKG_MGR} == "dnf" ]; then dnf clean expire-cache; fi | ||
RUN if [ ${PKG_MGR} == "yum" ]; then yum makecache; fi | ||
RUN ${PKG_MGR} install -y salt-minion | ||
|
||
RUN wget -O /tmp/nodejs.tar.gz https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz && \ | ||
mkdir -p /opt/ && \ | ||
tar -C /opt/ -xzf /tmp/nodejs.tar.gz && \ | ||
mv /opt/node* /opt/node | ||
|
||
ENV PATH=/opt/node/bin:$PATH | ||
|
||
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/*; | ||
|
||
COPY packaging/tests/deployments/salt/minion /etc/salt/minion | ||
COPY deployments/salt/splunk-otel-collector /srv/salt/splunk-otel-collector | ||
COPY deployments/salt/templates /srv/salt/templates | ||
COPY packaging/tests/deployments/salt/top.sls /srv/pillar/top.sls | ||
COPY packaging/tests/deployments/salt/top.sls /srv/salt/top.sls | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
40 changes: 0 additions & 40 deletions
40
packaging/tests/deployments/salt/images/deb/Dockerfile.debian-bullseye
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
packaging/tests/deployments/salt/images/deb/Dockerfile.debian-stretch
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
packaging/tests/deployments/salt/images/deb/Dockerfile.ubuntu-bionic
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
packaging/tests/deployments/salt/images/deb/Dockerfile.ubuntu-focal
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.