mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-20 09:57:43 +02:00
Removed unnecessary arguments and redesigned docker files for Alpine images
This commit is contained in:
parent
5e9a363267
commit
c593d36151
@ -1,23 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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}
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix agent" \
|
LABEL org.opencontainers.image.title="Zabbix agent" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \
|
org.opencontainers.image.description="Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -33,8 +21,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /var/lib/zabbix/enc && \
|
mkdir -p /var/lib/zabbix/enc && \
|
||||||
mkdir -p /var/lib/zabbix/modules && \
|
mkdir -p /var/lib/zabbix/modules && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
apk update && \
|
apk add --no-cache --clean-protected \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
tini \
|
tini \
|
||||||
bash \
|
bash \
|
||||||
coreutils \
|
coreutils \
|
||||||
@ -43,15 +30,26 @@ RUN set -eux && \
|
|||||||
libldap && \
|
libldap && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
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}
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk update && \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|
||||||
alpine-sdk \
|
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
|
g++ \
|
||||||
|
pcre-dev \
|
||||||
|
make \
|
||||||
git \
|
git \
|
||||||
coreutils && \
|
coreutils && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
|
@ -1,24 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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} \
|
|
||||||
PATH=${PATH}:/usr/lib/jvm/default-jvm/bin/ JAVA_HOME=/usr/lib/jvm/default-jvm
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix Java Gateway" \
|
LABEL org.opencontainers.image.title="Zabbix Java Gateway" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="Zabbix Java Gateway performs native support for monitoring JMX applications" \
|
org.opencontainers.image.description="Zabbix Java Gateway performs native support for monitoring JMX applications" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -30,19 +17,31 @@ RUN set -eux && \
|
|||||||
zabbix && \
|
zabbix && \
|
||||||
mkdir -p /etc/zabbix/ && \
|
mkdir -p /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
bash \
|
bash \
|
||||||
openjdk8-jre-base && \
|
openjdk8-jre-base && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
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} \
|
||||||
|
PATH=${PATH}:/usr/lib/jvm/default-jvm/bin/ JAVA_HOME=/usr/lib/jvm/default-jvm
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
coreutils \
|
coreutils \
|
||||||
openjdk8 \
|
git \
|
||||||
alpine-sdk && \
|
g++ \
|
||||||
|
make \
|
||||||
|
openjdk8 && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
|
@ -1,24 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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} \
|
|
||||||
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix proxy (MySQL)" \
|
LABEL org.opencontainers.image.title="Zabbix proxy (MySQL)" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="Zabbix proxy with MySQL database support" \
|
org.opencontainers.image.description="Zabbix proxy with MySQL database support" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -42,8 +29,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-proxy-mysql && \
|
mkdir -p /usr/share/doc/zabbix-proxy-mysql && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
tini \
|
tini \
|
||||||
bash \
|
bash \
|
||||||
iputils \
|
iputils \
|
||||||
@ -59,20 +45,33 @@ RUN set -eux && \
|
|||||||
fping && \
|
fping && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=3.0
|
||||||
|
ARG ZBX_VERSION=${MAJOR_VERSION}.28
|
||||||
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
|
|
||||||
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
|
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
coreutils \
|
coreutils \
|
||||||
curl-dev \
|
curl-dev \
|
||||||
|
g++ \
|
||||||
|
git \
|
||||||
|
make \
|
||||||
libssh2-dev \
|
libssh2-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
mysql-dev \
|
mysql-dev \
|
||||||
net-snmp-dev \
|
net-snmp-dev \
|
||||||
openipmi-dev \
|
openipmi-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
unixodbc-dev \
|
unixodbc-dev && \
|
||||||
alpine-sdk && \
|
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
|
@ -1,25 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
|
||||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
|
||||||
|
|
||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
|
||||||
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix proxy (SQLite3)" \
|
LABEL org.opencontainers.image.title="Zabbix proxy (SQLite3)" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="Zabbix proxy with SQLite3 database support" \
|
org.opencontainers.image.description="Zabbix proxy with SQLite3 database support" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -42,8 +28,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /var/lib/zabbix/ssl/keys && \
|
mkdir -p /var/lib/zabbix/ssl/keys && \
|
||||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
tini \
|
tini \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
@ -58,9 +43,20 @@ RUN set -eux && \
|
|||||||
unixodbc && \
|
unixodbc && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
|
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||||
|
|
||||||
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
|
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
alpine-sdk \
|
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
coreutils \
|
coreutils \
|
||||||
@ -72,6 +68,8 @@ RUN set -eux && \
|
|||||||
openldap-dev \
|
openldap-dev \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
git \
|
git \
|
||||||
|
g++ \
|
||||||
|
make \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
|
@ -1,24 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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} \
|
|
||||||
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix server (MySQL)" \
|
LABEL org.opencontainers.image.title="Zabbix server (MySQL)" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="Zabbix server with MySQL database support" \
|
org.opencontainers.image.description="Zabbix server with MySQL database support" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -44,8 +31,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-server-mysql && \
|
mkdir -p /usr/share/doc/zabbix-server-mysql && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
tini \
|
tini \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
@ -61,9 +47,19 @@ RUN set -eux && \
|
|||||||
unixodbc && \
|
unixodbc && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
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} \
|
||||||
|
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
alpine-sdk \
|
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
coreutils \
|
coreutils \
|
||||||
@ -75,6 +71,8 @@ RUN set -eux && \
|
|||||||
openipmi-dev \
|
openipmi-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
git \
|
git \
|
||||||
|
g++ \
|
||||||
|
make \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
|
@ -1,24 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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} \
|
|
||||||
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix server (PostgreSQL)" \
|
LABEL org.opencontainers.image.title="Zabbix server (PostgreSQL)" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="Zabbix server with PostgreSQL database support" \
|
org.opencontainers.image.description="Zabbix server with PostgreSQL database support" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -44,8 +31,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-server-postgresql && \
|
mkdir -p /usr/share/doc/zabbix-server-postgresql && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
tini \
|
tini \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
@ -61,8 +47,19 @@ RUN set -eux && \
|
|||||||
unixodbc && \
|
unixodbc && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
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} \
|
||||||
|
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
alpine-sdk \
|
alpine-sdk \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
@ -75,6 +72,8 @@ RUN set -eux && \
|
|||||||
openldap-dev \
|
openldap-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
git \
|
git \
|
||||||
|
g++ \
|
||||||
|
make \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
git clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||||
|
@ -1,23 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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}
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix web-interface (Apache, MySQL)" \
|
LABEL org.opencontainers.image.title="Zabbix web-interface (Apache, MySQL)" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="abbix web-interface based on Apache2 web server with MySQL database support" \
|
org.opencontainers.image.description="abbix web-interface based on Apache2 web server with MySQL database support" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -31,8 +19,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /etc/zabbix && \
|
mkdir -p /etc/zabbix && \
|
||||||
mkdir -p /etc/zabbix/web && \
|
mkdir -p /etc/zabbix/web && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
apache2 \
|
apache2 \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
@ -53,7 +40,7 @@ RUN set -eux && \
|
|||||||
php7-fileinfo \
|
php7-fileinfo \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter && \
|
php7-xmlwriter && \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
apk add --clean-protected --no-cache --no-scripts apache2-ssl && \
|
||||||
rm -f "/etc/apache2/conf.d/default.conf" && \
|
rm -f "/etc/apache2/conf.d/default.conf" && \
|
||||||
rm -f "/etc/apache2/conf.d/ssl.conf" && \
|
rm -f "/etc/apache2/conf.d/ssl.conf" && \
|
||||||
sed -ri \
|
sed -ri \
|
||||||
@ -66,8 +53,18 @@ RUN set -eux && \
|
|||||||
rm -f "/var/run/apache2/apache2.pid" && \
|
rm -f "/var/run/apache2/apache2.pid" && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
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}
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
gettext \
|
gettext \
|
||||||
git && \
|
git && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
|
@ -1,23 +1,11 @@
|
|||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
|
|
||||||
ARG APK_FLAGS_PERSISTENT="--clean-protected --no-cache"
|
|
||||||
ARG APK_FLAGS_DEV="--no-cache"
|
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
|
||||||
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}
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Zabbix web-interface (Apache, PostgreSQL)" \
|
LABEL org.opencontainers.image.title="Zabbix web-interface (Apache, PostgreSQL)" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||||
org.opencontainers.image.url="https://zabbix.com/" \
|
org.opencontainers.image.url="https://zabbix.com/" \
|
||||||
org.opencontainers.image.description="abbix web-interface based on Apache2 web server with PostgreSQL database support" \
|
org.opencontainers.image.description="abbix web-interface based on Apache2 web server with PostgreSQL database support" \
|
||||||
org.opencontainers.image.licenses="GPL v2.0" \
|
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}"
|
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -31,8 +19,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /etc/zabbix && \
|
mkdir -p /etc/zabbix && \
|
||||||
mkdir -p /etc/zabbix/web && \
|
mkdir -p /etc/zabbix/web && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apk update && \
|
apk add --clean-protected --no-cache \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} \
|
|
||||||
apache2 \
|
apache2 \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
@ -52,7 +39,7 @@ RUN set -eux && \
|
|||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter \
|
php7-xmlwriter \
|
||||||
postgresql-client && \
|
postgresql-client && \
|
||||||
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
apk add --clean-protected --no-cache --no-scripts apache2-ssl && \
|
||||||
rm -f "/etc/apache2/conf.d/default.conf" && \
|
rm -f "/etc/apache2/conf.d/default.conf" && \
|
||||||
rm -f "/etc/apache2/conf.d/ssl.conf" && \
|
rm -f "/etc/apache2/conf.d/ssl.conf" && \
|
||||||
sed -ri \
|
sed -ri \
|
||||||
@ -65,8 +52,18 @@ RUN set -eux && \
|
|||||||
rm -f "/var/run/apache2/apache2.pid" && \
|
rm -f "/var/run/apache2/apache2.pid" && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
ARG MAJOR_VERSION=master
|
||||||
|
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}
|
||||||
|
|
||||||
|
LABEL 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 && \
|
RUN set -eux && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add --no-cache --virtual build-dependencies \
|
||||||
gettext \
|
gettext \
|
||||||
git && \
|
git && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user