mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-25 09:13:50 +01:00
Allow build Java Gateway on PPC64LE arch
This commit is contained in:
parent
e44797ca15
commit
4850f74a3b
@ -25,25 +25,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -77,7 +58,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -25,19 +25,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -71,7 +58,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -35,19 +35,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -81,7 +68,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -25,25 +25,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -77,7 +58,7 @@ RUN set -eux && \
|
||||
--with-openssl \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -25,25 +25,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -77,7 +58,7 @@ RUN set -eux && \
|
||||
--with-postgresql \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -25,19 +25,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -71,7 +58,7 @@ RUN set -eux && \
|
||||
--with-postgresql \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -25,25 +25,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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -77,7 +58,7 @@ RUN set -eux && \
|
||||
--with-postgresql \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -23,25 +23,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=${ZBX_VERSION}
|
||||
|
||||
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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -72,7 +53,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -23,19 +23,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=${ZBX_VERSION}
|
||||
|
||||
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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -66,7 +53,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -33,19 +33,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=${ZBX_VERSION}
|
||||
|
||||
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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -76,7 +63,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
@ -23,25 +23,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=${ZBX_VERSION}
|
||||
|
||||
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 ${ZBX_VERSION} --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -72,7 +53,7 @@ RUN set -eux && \
|
||||
--with-sqlite3 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
$additional_components \
|
||||
--enable-java \
|
||||
--silent && \
|
||||
make -j"$(nproc)" -s dbschema && \
|
||||
make -j"$(nproc)" -s && \
|
||||
|
Loading…
Reference in New Issue
Block a user