2021-09-13 00:06:51 +02:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
FROM alpine:3.14
|
|
|
|
|
|
|
|
ARG MAJOR_VERSION=6.0
|
|
|
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
|
|
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
|
|
|
|
|
|
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
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
|
|
|
|
|
|
|
LABEL org.opencontainers.image.title="Zabbix build base" \
|
|
|
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
|
|
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
|
|
|
org.opencontainers.image.url="https://zabbix.com/" \
|
|
|
|
org.opencontainers.image.description="Zabbix build base image contains all required packages to build Zabbix images" \
|
|
|
|
org.opencontainers.image.licenses="GPL v2.0" \
|
|
|
|
org.opencontainers.image.documentation="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
|
|
|
org.opencontainers.image.version="${ZBX_VERSION}" \
|
|
|
|
org.opencontainers.image.source="${ZBX_SOURCES}"
|
|
|
|
|
|
|
|
RUN set -eux && \
|
2021-09-14 02:17:14 +02:00
|
|
|
env && \
|
2021-09-13 00:06:51 +02:00
|
|
|
apk add --no-cache --clean-protected \
|
|
|
|
bash \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
coreutils \
|
|
|
|
curl-dev \
|
|
|
|
libevent-dev \
|
|
|
|
libssh-dev \
|
|
|
|
sqlite-dev \
|
|
|
|
libmodbus-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
mysql-dev \
|
|
|
|
net-snmp-dev \
|
|
|
|
openipmi-dev \
|
|
|
|
openldap-dev \
|
|
|
|
pcre-dev \
|
|
|
|
postgresql-dev \
|
|
|
|
openjdk8 \
|
|
|
|
gettext \
|
|
|
|
git \
|
|
|
|
g++ \
|
2021-09-14 02:49:22 +02:00
|
|
|
go \
|
2021-09-13 00:06:51 +02:00
|
|
|
make \
|
|
|
|
openjdk8-jre-base \
|
|
|
|
unixodbc-dev && \
|
2021-09-14 00:12:27 +02:00
|
|
|
rm -rf /var/cache/apk/*
|