Added s390x for Alpine

This commit is contained in:
Alexey Pustovalov 2021-10-29 19:11:31 +03:00
parent 1fa91212a2
commit f63ebbdef8
3 changed files with 29 additions and 3 deletions

View File

@ -264,7 +264,7 @@ jobs:
if-no-files-found: error if-no-files-found: error
build_images: build_images:
timeout-minutes: 60 timeout-minutes: 90
needs: [ "build_base_database", "init_build"] needs: [ "build_base_database", "init_build"]
name: Build ${{ matrix.build }} on ${{ matrix.os }} name: Build ${{ matrix.build }} on ${{ matrix.os }}
strategy: strategy:

View File

@ -30,6 +30,19 @@ LABEL description="Zabbix build base for MySQL based images" \
org.label-schema.vendor="Zabbix LLC" org.label-schema.vendor="Zabbix LLC"
RUN set -eux && \ 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/ && \ cd /tmp/ && \
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \ git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
cd /tmp/zabbix-${ZBX_VERSION} && \ cd /tmp/zabbix-${ZBX_VERSION} && \
@ -47,7 +60,6 @@ RUN set -eux && \
--enable-ipv6 \ --enable-ipv6 \
--enable-agent \ --enable-agent \
--enable-agent2 \ --enable-agent2 \
--enable-java \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
@ -61,6 +73,7 @@ RUN set -eux && \
--with-openssl \ --with-openssl \
--with-ssh \ --with-ssh \
--with-unixodbc \ --with-unixodbc \
$additional_components \
--silent && \ --silent && \
make -j"$(nproc)" -s dbschema && \ make -j"$(nproc)" -s dbschema && \
make -j"$(nproc)" -s && \ make -j"$(nproc)" -s && \

View File

@ -30,6 +30,19 @@ LABEL description="Zabbix build base for SQLite3 based images" \
org.label-schema.vendor="Zabbix LLC" org.label-schema.vendor="Zabbix LLC"
RUN set -eux && \ 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/ && \ cd /tmp/ && \
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \ git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch /tmp/zabbix-${ZBX_VERSION} && \
cd /tmp/zabbix-${ZBX_VERSION} && \ cd /tmp/zabbix-${ZBX_VERSION} && \
@ -47,7 +60,6 @@ RUN set -eux && \
--enable-agent \ --enable-agent \
--enable-agent2 \ --enable-agent2 \
--enable-ipv6 \ --enable-ipv6 \
--enable-java \
--enable-proxy \ --enable-proxy \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
@ -59,6 +71,7 @@ RUN set -eux && \
--with-sqlite3 \ --with-sqlite3 \
--with-ssh \ --with-ssh \
--with-unixodbc \ --with-unixodbc \
$additional_components \
--silent && \ --silent && \
make -j"$(nproc)" -s dbschema && \ make -j"$(nproc)" -s dbschema && \
make -j"$(nproc)" -s && \ make -j"$(nproc)" -s && \