mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-25 17:23:48 +01:00
Allow build Java Gateway on PPC64LE arch
This commit is contained in:
parent
f4697af90a
commit
c9a94d3161
@ -19,7 +19,7 @@ LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zab
|
||||
org.opencontainers.image.version="${ZBX_VERSION}"
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
ARCH_SUFFIX="$(cat /etc/apk/arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
ppc64le) \
|
||||
openjdk_packages='openjdk11 openjdk11-jre-headless'; \
|
||||
|
@ -26,25 +26,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
armv7l) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
s390x) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -78,7 +59,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -26,19 +26,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -72,7 +59,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -36,19 +36,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -82,7 +69,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -26,25 +26,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
armv7l) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
s390x) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -78,7 +59,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -26,25 +26,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
armv7l) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
s390x) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -78,7 +59,7 @@ RUN set -eux && \
|
||||
--with-postgresql \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -26,19 +26,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -72,7 +59,7 @@ RUN set -eux && \
|
||||
--with-postgresql \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -26,25 +26,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
COPY ["conf/chromedp_no_sandbox.patch", "/tmp/chromedp_no_sandbox.patch"]
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
armv7l) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
s390x) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -78,7 +59,7 @@ RUN set -eux && \
|
||||
--with-postgresql \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -24,25 +24,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
POSTGRESQL_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/postgresql.git POSTGRESQL_PLUGIN_VERSION=master
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
armv7l) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
s390x) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -73,7 +54,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -24,19 +24,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
POSTGRESQL_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/postgresql.git POSTGRESQL_PLUGIN_VERSION=master
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -67,7 +54,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -34,19 +34,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
POSTGRESQL_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/postgresql.git POSTGRESQL_PLUGIN_VERSION=master
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -77,7 +64,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -24,25 +24,6 @@ ENV MONGODB_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/mongodb.git MONGODB_PLU
|
||||
POSTGRESQL_PLUGIN_SOURCES=https://git.zabbix.com/scm/ap/postgresql.git POSTGRESQL_PLUGIN_VERSION=master
|
||||
|
||||
RUN set -eux && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
x86_64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
aarch64) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
armv7l) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
s390x) \
|
||||
additional_components='--enable-java'; \
|
||||
;; \
|
||||
ppc64le) \
|
||||
additional_components=''; \
|
||||
;; \
|
||||
*) echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX-}"; exit 1 ;; \
|
||||
esac; \
|
||||
cd /tmp/ && \
|
||||
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${GIT_BRANCH} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -73,7 +54,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -31,7 +31,7 @@ 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)"; \
|
||||
ARCH_SUFFIX="$(cat /etc/apk/arch)"; \
|
||||
case "$ARCH_SUFFIX" in \
|
||||
ppc64le) \
|
||||
openjdk_packages='openjdk11-jre-headless'; \
|
||||
|
Loading…
Reference in New Issue
Block a user