2021-09-13 00:06:51 +02:00
|
|
|
# syntax=docker/dockerfile:1
|
2024-05-23 08:27:12 +02:00
|
|
|
FROM alpine:3.20
|
2021-09-13 00:06:51 +02:00
|
|
|
|
2022-07-05 14:46:20 +02:00
|
|
|
ARG MAJOR_VERSION=6.4
|
2024-09-23 14:48:29 +02:00
|
|
|
ARG ZBX_VERSION=${MAJOR_VERSION}.19
|
2021-09-13 00:06:51 +02:00
|
|
|
|
2021-10-16 17:49:19 +02:00
|
|
|
ENV TERM=xterm \
|
|
|
|
ZBX_VERSION=${ZBX_VERSION} \
|
2021-09-14 04:55:24 +02:00
|
|
|
PATH=/usr/lib/jvm/default-jvm/bin:$PATH \
|
2021-09-14 01:18:41 +02:00
|
|
|
JAVA_HOME=/usr/lib/jvm/default-jvm
|
2021-09-13 00:06:51 +02:00
|
|
|
|
2021-10-16 17:49:19 +02:00
|
|
|
LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
2021-09-13 00:06:51 +02:00
|
|
|
org.opencontainers.image.description="Zabbix build base image contains all required packages to build Zabbix images" \
|
|
|
|
org.opencontainers.image.documentation="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
2021-10-16 17:49:19 +02:00
|
|
|
org.opencontainers.image.licenses="GPL v2.0" \
|
|
|
|
org.opencontainers.image.title="Zabbix build base" \
|
|
|
|
org.opencontainers.image.url="https://zabbix.com/" \
|
2024-05-21 12:45:53 +02:00
|
|
|
org.opencontainers.image.vendor="Zabbix SIA" \
|
2021-10-16 17:49:19 +02:00
|
|
|
org.opencontainers.image.version="${ZBX_VERSION}"
|
2021-09-13 00:06:51 +02:00
|
|
|
|
|
|
|
RUN set -eux && \
|
2024-02-05 12:07:33 +01:00
|
|
|
ARCH_SUFFIX="$(cat /etc/apk/arch)"; \
|
2024-01-29 08:26:07 +01:00
|
|
|
case "$ARCH_SUFFIX" in \
|
2024-02-05 12:07:33 +01:00
|
|
|
x86) \
|
2024-02-05 09:15:37 +01:00
|
|
|
openjdk_packages='openjdk8 openjdk8-jre-base'; \
|
|
|
|
;; \
|
2024-02-05 12:10:01 +01:00
|
|
|
armv7) \
|
|
|
|
openjdk_packages='openjdk8 openjdk8-jre-base'; \
|
|
|
|
;; \
|
2024-01-29 08:26:07 +01:00
|
|
|
ppc64le) \
|
|
|
|
openjdk_packages='openjdk11 openjdk11-jre-headless'; \
|
|
|
|
;; \
|
|
|
|
*) openjdk_packages='openjdk17 openjdk17-jre-headless'; \
|
|
|
|
esac; \
|
2021-10-16 17:49:19 +02:00
|
|
|
INSTALL_PKGS="bash \
|
2021-09-13 00:06:51 +02:00
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
coreutils \
|
2023-03-14 13:15:10 +01:00
|
|
|
curl \
|
2021-09-13 00:06:51 +02:00
|
|
|
curl-dev \
|
|
|
|
libevent-dev \
|
|
|
|
libssh-dev \
|
|
|
|
sqlite-dev \
|
|
|
|
libmodbus-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
mysql-dev \
|
|
|
|
net-snmp-dev \
|
|
|
|
openipmi-dev \
|
|
|
|
openldap-dev \
|
2021-10-12 02:08:40 +02:00
|
|
|
openssl-dev \
|
2023-01-20 08:30:08 +01:00
|
|
|
patch \
|
2022-01-22 13:44:37 +01:00
|
|
|
pcre2-dev \
|
2024-05-10 12:24:20 +02:00
|
|
|
libpq-dev \
|
2021-09-13 00:06:51 +02:00
|
|
|
gettext \
|
|
|
|
git \
|
|
|
|
g++ \
|
2021-09-14 02:49:22 +02:00
|
|
|
go \
|
2021-09-13 00:06:51 +02:00
|
|
|
make \
|
2024-01-29 08:26:07 +01:00
|
|
|
$openjdk_packages \
|
2024-03-24 14:42:53 +01:00
|
|
|
unixodbc-dev \
|
|
|
|
zlib-dev" && \
|
2021-10-16 17:49:19 +02:00
|
|
|
apk add \
|
|
|
|
--no-cache \
|
|
|
|
--clean-protected \
|
2024-02-18 13:52:23 +01:00
|
|
|
${INSTALL_PKGS}
|