2024-09-12 10:45:53 +00:00
# SPDX-License-Identifier: (LGPL-2.1+ AND GPL-2.0+)
# Copyright (c) 2024 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon.
# The content of THIS FILE IS AUTOGENERATED and should not be manually modified.
# It is maintained by the BCI team and generated by
# https://github.com/SUSE/BCI-dockerfile-generator
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
#!UseOBSRepositories
#!BuildTag: opensuse/pcp:6.2.1-%RELEASE%
2024-10-11 15:26:47 +00:00
#!BuildTag: opensuse/pcp:6.2.1
2024-09-12 10:45:53 +00:00
#!BuildTag: opensuse/pcp:6.2
#!BuildTag: opensuse/pcp:6
#!BuildTag: opensuse/pcp:latest
FROM opensuse/bci/bci-init:latest
2024-09-25 17:58:04 +00:00
RUN set -euo pipefail; \
zypper -n install --no-recommends pcp hostname procps shadow envsubst util-linux-systemd; \
zypper -n clean; \
rm -rf { /target,} /var/log/{ alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
2024-09-12 10:45:53 +00:00
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.application.pcp
LABEL org.opencontainers.image.authors= "openSUSE (https://www.opensuse.org/)"
LABEL org.opencontainers.image.title= "openSUSE Tumbleweed Performance Co-Pilot (pcp)"
LABEL org.opencontainers.image.description= "Performance Co-Pilot (pcp) container based on the openSUSE Tumbleweed Base Container Image. This container is only supported with podman."
LABEL org.opencontainers.image.version= "6.2.1"
LABEL org.opencontainers.image.url= "https://www.opensuse.org"
LABEL org.opencontainers.image.created= "%BUILDTIME%"
LABEL org.opencontainers.image.vendor= "openSUSE Project"
LABEL org.opencontainers.image.source= "%SOURCEURL%"
LABEL org.opencontainers.image.ref.name= "6.2.1-%RELEASE%"
LABEL org.opensuse.reference= "registry.opensuse.org/opensuse/pcp:6.2.1-%RELEASE%"
LABEL org.openbuildservice.disturl= "%DISTURL%"
LABEL org.opensuse.lifecycle-url= "https://en.opensuse.org/Lifetime#openSUSE_BCI"
LABEL org.opensuse.release-stage= "released"
# endlabelprefix
LABEL io.artifacthub.package.readme-url= "https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/pcp-image/README.md"
ENTRYPOINT [ "/usr/local/bin/container-entrypoint" ]
CMD [ "/usr/lib/systemd/systemd" ]
EXPOSE 44321 44322 44323
RUN set -euo pipefail; mkdir -p /usr/share/container-scripts/pcp; mkdir -p /etc/sysconfig
COPY container-entrypoint healthcheck /usr/local/bin/
RUN set -euo pipefail; chmod +x /usr/local/bin/container-entrypoint /usr/local/bin/healthcheck
COPY pmproxy.conf.template 10-host_mount.conf.template /usr/share/container-scripts/pcp/
COPY pmcd pmlogger /etc/sysconfig/
# This can be removed after the pcp dependency on sysconfig is removed
RUN set -euo pipefail; systemctl disable wicked wickedd || :
HEALTHCHECK --start-period= 30s --timeout= 20s --interval= 10s --retries= 3 CMD /usr/local/bin/healthcheck
VOLUME /var/log/pcp/pmlogger