Skip to content

Commit

Permalink
allow nginx ubi mainline or stable to build (#6113)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored Aug 1, 2024
1 parent e659619 commit d8a24c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/dependencies/Dockerfile.ubi-ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ RUN mkdir -p /nginx/; \
# only build for ppc64le but make multiarch image for mounting
[ $(uname -p) != ppc64le ] && exit 0; \
rpm --import https://nginx.org/keys/nginx_signing.key \
&& MINOR_VERSION=$(echo ${NGINX_VERSION} | cut -d '.' -f 2) \
&& if [ $(( $MINOR_VERSION % 2)) -eq 0 ]; then echo mainline=""; else mainline="mainline/"; fi \
&& printf "%s\n" "[nginx]" "name=nginx src repo" \
"baseurl=https://nginx.org/packages/mainline/centos/9/SRPMS" \
"baseurl=https://nginx.org/packages/${mainline}centos/9/SRPMS" \
"gpgcheck=1" "enabled=1" "module_hotfixes=true" >> /etc/yum.repos.d/nginx.repo \
&& dnf install rpm-build gcc make dnf-plugins-core which -y \
&& dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
Expand Down

0 comments on commit d8a24c4

Please sign in to comment.