2022-04-28 12:31:09 +00:00
# SPDX-License-Identifier: (LGPL-2.1+ AND GPL-2.0+)
2023-09-28 15:04:16 +00:00
2024-01-02 08:30:52 +00:00
# Copyright (c) 2024 SUSE LLC
2023-09-28 15:04:16 +00:00
# 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
2022-11-23 09:32:54 +00:00
#!BuildTag: opensuse/pcp:%%pcp_patch%%
#!BuildTag: opensuse/pcp:%%pcp_patch%%-%RELEASE%
#!BuildTag: opensuse/pcp:%%pcp_minor%%
2022-12-21 14:24:33 +00:00
#!BuildTag: opensuse/pcp:%%pcp_minor%%-%RELEASE%
2022-11-23 09:32:54 +00:00
#!BuildTag: opensuse/pcp:%%pcp_major%%
2022-12-21 14:24:33 +00:00
#!BuildTag: opensuse/pcp:%%pcp_major%%-%RELEASE%
#!BuildTag: opensuse/pcp:latest
2022-11-23 09:32:54 +00:00
FROM opensuse/bci/bci-init:latest
2022-04-28 12:31:09 +00:00
2022-07-18 14:07:26 +00:00
MAINTAINER openSUSE (https://www.opensuse.org/)
2022-04-28 12:31:09 +00:00
# Define labels according to https://en.opensuse.org/Building_derived_containers
2022-07-18 14:07:26 +00:00
# labelprefix=org.opensuse.application.pcp
2023-06-26 10:30:40 +00:00
LABEL org.opencontainers.image.title= "openSUSE Tumbleweed Performance Co-Pilot (pcp)"
2023-07-26 09:46:19 +00:00
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."
2022-11-23 09:32:54 +00:00
LABEL org.opencontainers.image.version= "%%pcp_patch%%"
2022-07-18 14:07:26 +00:00
LABEL org.opencontainers.image.url= "https://www.opensuse.org"
2022-04-28 12:31:09 +00:00
LABEL org.opencontainers.image.created= "%BUILDTIME%"
2022-07-18 14:07:26 +00:00
LABEL org.opencontainers.image.vendor= "openSUSE Project"
2023-03-03 07:52:04 +00:00
LABEL org.opencontainers.image.source= "%SOURCEURL%"
2022-11-23 09:32:54 +00:00
LABEL org.opensuse.reference= "registry.opensuse.org/opensuse/pcp:%%pcp_patch%%-%RELEASE%"
2022-04-28 12:31:09 +00:00
LABEL org.openbuildservice.disturl= "%DISTURL%"
2023-06-01 15:36:09 +00:00
LABEL org.opensuse.lifecycle-url= "https://en.opensuse.org/Lifetime"
LABEL org.opensuse.release-stage= "released"
2022-07-18 14:07:26 +00:00
2022-04-28 12:31:09 +00:00
# endlabelprefix
2022-05-04 08:00:05 +00:00
RUN set -euo pipefail; zypper -n in --no-recommends pcp hostname shadow gettext-runtime util-linux-systemd; zypper -n clean; rm -rf /var/log/*
2022-06-15 11:25:30 +00:00
ENTRYPOINT [ "/usr/local/bin/container-entrypoint" ]
2022-04-28 12:31:09 +00:00
CMD [ "/usr/lib/systemd/systemd" ]
2022-11-23 09:32:54 +00:00
EXPOSE 44321 44322 44323
2022-04-28 12:31:09 +00:00
2022-05-04 08:00:05 +00:00
RUN set -euo pipefail; mkdir -p /usr/share/container-scripts/pcp; mkdir -p /etc/sysconfig
2022-06-15 11:25:30 +00:00
COPY container-entrypoint healthcheck /usr/local/bin/
RUN set -euo pipefail; chmod +x /usr/local/bin/container-entrypoint /usr/local/bin/healthcheck
2022-04-28 12:31:09 +00:00
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
2022-12-21 16:09:01 +00:00
RUN set -euo pipefail; systemctl disable wicked wickedd || :
2022-04-28 12:31:09 +00:00
2022-06-15 11:25:30 +00:00
HEALTHCHECK --start-period= 30s --timeout= 20s --interval= 10s --retries= 3 CMD /usr/local/bin/healthcheck
2023-04-05 16:00:31 +00:00
VOLUME /var/log/pcp/pmlogger