32 lines
1.1 KiB
Docker
32 lines
1.1 KiB
Docker
FROM registry.fedoraproject.org/fedora:34
|
|
|
|
ENV SUMMARY="Performance Co-Pilot" \
|
|
DESCRIPTION="Performance Co-Pilot is a system performance analysis toolkit." \
|
|
VERSION=5
|
|
|
|
LABEL name="pcp" \
|
|
summary="${SUMMARY}" \
|
|
description="${DESCRIPTION}" \
|
|
version="$VERSION" \
|
|
usage="podman run -d --name pcp --systemd always -p 44321:44321 -p 44322:44322 -v pcp-archives:/var/log/pcp/pmlogger registry.fedoraproject.org/pcp" \
|
|
maintainer="PCP Team <pcp@groups.io>" \
|
|
help="cat /README.md" \
|
|
com.redhat.component="pcp" \
|
|
io.k8s.display-name="Performance Co-Pilot" \
|
|
io.k8s.description="${DESCRIPTION}" \
|
|
io.openshift.expose-services="44321:pmcd,44322:pmproxy" \
|
|
io.openshift.tags="pcp,performance,monitoring,metrics"
|
|
|
|
RUN groupadd -g 1001 -r pcp && \
|
|
useradd -u 1001 -g pcp -r -d /var/lib/pcp -s /sbin/nologin -c "Performance Co-Pilot" pcp && \
|
|
dnf install -y --setopt=tsflags=nodocs procps-ng gettext pcp pcp-zeroconf && \
|
|
dnf clean all
|
|
|
|
COPY root /
|
|
|
|
VOLUME ["/var/log/pcp/pmlogger"]
|
|
EXPOSE 44321
|
|
EXPOSE 44322
|
|
|
|
ENTRYPOINT ["/usr/bin/container-entrypoint"]
|
|
CMD ["/usr/sbin/init"]
|