Containerfile-psacct 893 B

123456789101112131415161718192021222324252627282930
  1. FROM registry.redhat.io/ubi9/ubi-minimal:latest
  2. USER 0
  3. COPY entrypoint-psacct.sh /usr/local/bin/entrypoint.sh
  4. # This still applies: delete host RHSM data in OpenShift
  5. # Twist: if there is no host entitlement, remove host RHSM data.
  6. RUN [ -d /etc/pki/entitlement-host ] || rm -f /etc/rhsm-host ; \
  7. microdnf -y install psacct && \
  8. rm -rf /var/lib/dnf /var/cache/dnf /var/cache/yum /var/cache/cups /var/cache/PackageKit && \
  9. chmod 755 /usr/local/bin/entrypoint.sh
  10. VOLUME /var/account
  11. ARG STARTUP_SCRATCH
  12. ARG CUMULATIVE
  13. LABEL description="Minimal psacct collector sidecar image" \
  14. io.k8s.description="Minimal psacct collector sidecar image" \
  15. io.k8s.display-name="psacct collector" \
  16. io.openshift.expose-services="" \
  17. maintainer="Grega Bremec <gregab@p0f.net>" \
  18. vendor="P0F" \
  19. version="v1.0" \
  20. release="1.0" \
  21. License=BSD
  22. ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]