Skip to content

Commit

Permalink
Install httpd after replacing the release RPM
Browse files Browse the repository at this point in the history
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 ManageIQ#956
  • Loading branch information
bdunne committed Apr 27, 2023
1 parent 6665e6b commit bae0cdc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions images/manageiq-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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* && \
Expand All @@ -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/16-petrosian/el8/noarch/manageiq-release-16.0-1.el8.noarch.rpm && \
dnf -y update && \
Expand Down

0 comments on commit bae0cdc

Please sign in to comment.