From a4f54214b28d9a20e2bfd074c9711be5543c1e1d Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Thu, 27 Apr 2023 17:52:21 -0400 Subject: [PATCH] Install httpd after replacing the release RPM httpd will still come from the UBI appstream repo due to the exclusion set above. When the release RPM is swapped, the RPM scripts from that and shadow-utils reset the contents of /etc/passwd causing the apache user to be removed and httpd fails to start due to the missing user. Based on changes in https://github.com/ManageIQ/manageiq-pods/pull/956 --- images/manageiq-base/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/images/manageiq-base/Dockerfile b/images/manageiq-base/Dockerfile index cf417c9f..47ab410b 100644 --- a/images/manageiq-base/Dockerfile +++ b/images/manageiq-base/Dockerfile @@ -34,9 +34,6 @@ COPY container-assets/create_local_yum_repo.sh / COPY container-assets/clean_dnf_rpm /usr/local/bin/ RUN dnf config-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False --save && \ - dnf -y --disableplugin=subscription-manager install \ - httpd \ - mod_ssl && \ if [ ${ARCH} != "s390x" ] ; then \ dnf -y --setopt=protected_packages= remove redhat-release && \ dnf -y remove *subscription-manager* && \ @@ -47,6 +44,8 @@ RUN dnf config-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False dnf config-manager --setopt=appstream*.exclude=*httpd*,mod_ssl --save \ ; fi && \ dnf -y install \ + httpd \ + mod_ssl \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \ https://rpm.manageiq.org/release/17-quinteros/el8/noarch/manageiq-release-17.0-1.el8.noarch.rpm && \ dnf -y update && \