Skip to content

Commit

Permalink
Merge pull request #95 from galal-hussein/fix_s390x
Browse files Browse the repository at this point in the history
Add fixes for the Dockerfile.chroot for s390x
  • Loading branch information
galal-hussein authored Apr 25, 2022
2 parents 4644e24 + 334bcab commit 662d14c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ release: ensure-buildx clean
--build-arg BASE_IMAGE="$(BASE_IMAGE)" \
--build-arg VERSION="$(TAG)" \
--build-arg COMMIT_SHA="$(COMMIT_SHA)" \
--build-arg TARGETARCH="$(ARCH)" \
--build-arg BUILD_ID="$(BUILD_ID)" \
-t $(REGISTRY)/nginx-ingress-controller:$(TAG)-$(PLATFORMS) rootfs

Expand All @@ -249,5 +250,6 @@ release: ensure-buildx clean
--build-arg BASE_IMAGE="$(BASE_IMAGE)" \
--build-arg VERSION="$(TAG)" \
--build-arg COMMIT_SHA="$(COMMIT_SHA)" \
--build-arg TARGETARCH="$(ARCH)" \
--build-arg BUILD_ID="$(BUILD_ID)" \
-t $(REGISTRY)/nginx-ingress-controller-chroot:$(TAG)-$(PLATFORMS) rootfs -f rootfs/Dockerfile.chroot
9 changes: 7 additions & 2 deletions rootfs/Dockerfile.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,19 @@ ENV LUA_PATH="/usr/local/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1
ENV LUA_CPATH="/usr/local/lib/lua/?/?.so;/usr/local/lib/lua/?.so;;"
ENV PATH=$PATH:/usr/local/luajit/bin:/usr/local/nginx/sbin:/usr/local/nginx/bin

RUN microdnf install -y \
RUN if [ "$TARGETARCH" = "s390x" ] ; then dnf install -y \
bash \
curl \
openssl \
ca-certificates \
tzdata \
diffutils \
util-linux
util-linux ; else microdnf install bash \
curl \
openssl \
ca-certificates \
tzdata \
diffutils; fi

COPY --chown=www-data:www-data etc /chroot/etc

Expand Down

0 comments on commit 662d14c

Please sign in to comment.