Added PPC64LE arch for Alpine images

This commit is contained in:
Alexey Pustovalov 2024-01-29 16:26:07 +09:00
parent 2a401d5745
commit 2375b70728
6 changed files with 21 additions and 7 deletions

View File

@ -19,6 +19,13 @@ LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zab
org.opencontainers.image.version="${ZBX_VERSION}"
RUN set -eux && \
ARCH_SUFFIX="$(arch)"; \
case "$ARCH_SUFFIX" in \
ppc64le) \
openjdk_packages='openjdk11 openjdk11-jre-headless'; \
;; \
*) openjdk_packages='openjdk17 openjdk17-jre-headless'; \
esac; \
INSTALL_PKGS="bash \
autoconf \
automake \
@ -38,13 +45,12 @@ RUN set -eux && \
patch \
pcre2-dev \
postgresql-dev \
openjdk17 \
gettext \
git \
g++ \
go \
make \
openjdk17-jre-headless \
$openjdk_packages \
unixodbc-dev" && \
apk add \
--no-cache \

View File

@ -40,7 +40,7 @@ RUN set -eux && \
additional_components='--enable-java'; \
;; \
ppc64le) \
additional_components=''; \
additional_components='--enable-java'; \
;; \
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
esac; \

View File

@ -40,7 +40,7 @@ RUN set -eux && \
additional_components='--enable-java'; \
;; \
ppc64le) \
additional_components=''; \
additional_components='--enable-java'; \
;; \
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
esac; \

View File

@ -38,7 +38,7 @@ RUN set -eux && \
additional_components='--enable-java'; \
;; \
ppc64le) \
additional_components=''; \
additional_components='--enable-java'; \
;; \
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
esac; \

View File

@ -31,8 +31,15 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/bin", "/usr/sbi
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib", "/usr/sbin/zabbix_java/lib"]
RUN set -eux && \
ARCH_SUFFIX="$(arch)"; \
case "$ARCH_SUFFIX" in \
ppc64le) \
openjdk_packages='openjdk11-jre-headless'; \
;; \
*) openjdk_packages='openjdk17-jre-headless'; \
esac; \
INSTALL_PKGS="bash \
openjdk17-jre-headless" && \
$openjdk_packages" && \
apk add \
--no-cache \
--clean-protected \

View File

@ -5,7 +5,8 @@
"linux/amd64",
"linux/arm/v7",
"linux/arm64",
"linux/s390x"
"linux/s390x",
"linux/ppc64le"
],
"ol": [
"linux/amd64",