mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-12-22 22:41:19 +01:00
Updated all Dockerfiles to make consistency
This commit is contained in:
parent
9aa8e0362b
commit
53ff586760
@ -1,13 +1,13 @@
|
|||||||
FROM alpine:3.4 as builder
|
FROM alpine:3.4 as builder
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
ZBX_TYPE=agent
|
||||||
ZBX_TYPE=agent ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
@ -19,11 +19,11 @@ RUN apk update && \
|
|||||||
subversion \
|
subversion \
|
||||||
coreutils && \
|
coreutils && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -36,7 +36,7 @@ RUN apk update && \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null
|
make -j"$(nproc)" -s
|
||||||
|
|
||||||
FROM alpine:3.4
|
FROM alpine:3.4
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -44,13 +44,13 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=agent ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
ZBX_TYPE=agent ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-alpine" \
|
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-alpine" \
|
||||||
@ -60,7 +60,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -68,6 +68,11 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-alpine" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_agent/zabbix_agentd /usr/sbin/zabbix_agentd
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
|
||||||
|
|
||||||
RUN addgroup zabbix && \
|
RUN addgroup zabbix && \
|
||||||
adduser -S \
|
adduser -S \
|
||||||
-D -G zabbix \
|
-D -G zabbix \
|
||||||
@ -86,11 +91,6 @@ RUN addgroup zabbix && \
|
|||||||
libldap && \
|
libldap && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_agent/zabbix_agentd /usr/sbin/zabbix_agentd
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
|
|
||||||
|
|
||||||
EXPOSE 10050/TCP
|
EXPOSE 10050/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
ZBX_TYPE=agent
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
@ -19,11 +19,11 @@ RUN yum --quiet makecache && \
|
|||||||
subversion \
|
subversion \
|
||||||
gcc && \
|
gcc && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`set -o pipefail && svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`set -o pipefail && svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -36,7 +36,7 @@ RUN yum --quiet makecache && \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null
|
make -j"$(nproc)" -s
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -44,15 +44,14 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ENV TERM=xterm \
|
ZBX_TYPE=agent ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
||||||
ZBX_TYPE=agent ZBX_DB_TYPE=none ZBX_OPT_TYPE=none \
|
|
||||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
||||||
org.label-schema.vendor="Zabbix LLC" \
|
org.label-schema.vendor="Zabbix LLC" \
|
||||||
@ -69,6 +68,11 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_agent/zabbix_agentd /usr/sbin/zabbix_agentd
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
|
||||||
|
|
||||||
RUN groupadd --system zabbix && \
|
RUN groupadd --system zabbix && \
|
||||||
adduser -r --shell /sbin/nologin \
|
adduser -r --shell /sbin/nologin \
|
||||||
-g zabbix \
|
-g zabbix \
|
||||||
@ -81,17 +85,12 @@ RUN groupadd --system zabbix && \
|
|||||||
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 && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
libldap \
|
libldap \
|
||||||
openssl-libs && \
|
openssl-libs && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum
|
rm -rf /var/cache/yum
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_agent/zabbix_agentd /usr/sbin/zabbix_agentd
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
|
|
||||||
|
|
||||||
EXPOSE 10050/TCP
|
EXPOSE 10050/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
FROM ubuntu:trusty as builder
|
FROM ubuntu:trusty as builder
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
ZBX_TYPE=agent ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||||
|
|
||||||
RUN locale-gen $LC_ALL && \
|
RUN locale-gen $LC_ALL && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
@ -19,13 +20,13 @@ RUN locale-gen $LC_ALL && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
gcc 1>/dev/null && \
|
gcc && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -37,7 +38,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null
|
make -j"$(nproc)" -s
|
||||||
|
|
||||||
FROM ubuntu:trusty
|
FROM ubuntu:trusty
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -45,8 +46,9 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -61,7 +63,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -69,6 +71,11 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-ubuntu" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_agent/zabbix_agentd /usr/sbin/zabbix_agentd
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
|
||||||
|
|
||||||
RUN locale-gen $LC_ALL && \
|
RUN locale-gen $LC_ALL && \
|
||||||
echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
||||||
addgroup --system --quiet zabbix && \
|
addgroup --system --quiet zabbix && \
|
||||||
@ -84,17 +91,12 @@ RUN locale-gen $LC_ALL && \
|
|||||||
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 && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
libldap-2.4 1>/dev/null && \
|
libldap-2.4 && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_agent/zabbix_agentd /usr/sbin/zabbix_agentd
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf
|
|
||||||
|
|
||||||
EXPOSE 10050/TCP
|
EXPOSE 10050/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm PATH=${PATH}:/usr/lib/jvm/default-jvm/bin/ JAVA_HOME=/usr/lib/jvm/default-jvm \
|
ENV TERM=xterm PATH=${PATH}:/usr/lib/jvm/default-jvm/bin/ JAVA_HOME=/usr/lib/jvm/default-jvm \
|
||||||
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -52,12 +52,12 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
subversion \
|
subversion \
|
||||||
alpine-sdk && \
|
alpine-sdk && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
--libdir=/usr/lib/zabbix \
|
--libdir=/usr/lib/zabbix \
|
||||||
@ -65,7 +65,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-java \
|
--enable-java \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||||
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
||||||
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none \
|
ZBX_TYPE=java-gateway
|
||||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
@ -19,12 +18,12 @@ RUN yum --quiet makecache && \
|
|||||||
subversion \
|
subversion \
|
||||||
gcc && \
|
gcc && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
--libdir=/usr/lib/zabbix \
|
--libdir=/usr/lib/zabbix \
|
||||||
@ -32,7 +31,7 @@ RUN yum --quiet makecache && \
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-java \
|
--enable-java \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
rm -rf src/zabbix_java/lib/*.xml
|
rm -rf src/zabbix_java/lib/*.xml
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
@ -41,13 +40,13 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ENV TERM=xterm \
|
|
||||||
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
||||||
@ -57,7 +56,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -65,6 +64,9 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-centos" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/bin/* /usr/sbin/zabbix_java/bin/
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/* /usr/sbin/zabbix_java/lib/
|
||||||
|
|
||||||
RUN groupadd --system zabbix && \
|
RUN groupadd --system zabbix && \
|
||||||
adduser --system --shell /sbin/nologin \
|
adduser --system --shell /sbin/nologin \
|
||||||
-g zabbix \
|
-g zabbix \
|
||||||
@ -74,14 +76,11 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
java-1.8.0-openjdk-headless && \
|
java-1.8.0-openjdk-headless && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/bin/* /usr/sbin/zabbix_java/bin/
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib/* /usr/sbin/zabbix_java/lib/
|
|
||||||
|
|
||||||
EXPOSE 10052/TCP
|
EXPOSE 10052/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
ZBX_TYPE=java-gateway ZBX_DB_TYPE=none ZBX_OPT_TYPE=none
|
||||||
@ -33,8 +33,8 @@ RUN locale-gen $LC_ALL && \
|
|||||||
mkdir -p /etc/zabbix/ && \
|
mkdir -p /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
openjdk-7-jre-headless 1>/dev/null && \
|
openjdk-7-jre-headless && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -58,14 +58,14 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
openjdk-7-jdk \
|
openjdk-7-jdk \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
gcc 1>/dev/null && \
|
gcc && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
--libdir=/usr/lib/zabbix \
|
--libdir=/usr/lib/zabbix \
|
||||||
@ -73,7 +73,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-java \
|
--enable-java \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||||
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
cp -r src/zabbix_java/bin /usr/sbin/zabbix_java/ && \
|
||||||
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
cp -r src/zabbix_java/lib /usr/sbin/zabbix_java/ && \
|
||||||
@ -88,7 +88,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
openjdk-7-jdk \
|
openjdk-7-jdk \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
gcc 1>/dev/null && \
|
gcc && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
ZBX_TYPE=proxy ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
ZBX_TYPE=proxy ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ RUN addgroup zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
iputils \
|
iputils \
|
||||||
libcurl \
|
libcurl \
|
||||||
@ -81,11 +81,11 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
unixodbc-dev \
|
unixodbc-dev \
|
||||||
alpine-sdk && \
|
alpine-sdk && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -105,8 +105,8 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=proxy ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
ZBX_TYPE=proxy ZBX_DB_TYPE=mysql
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
@ -25,11 +25,11 @@ RUN yum --quiet makecache && \
|
|||||||
subversion \
|
subversion \
|
||||||
unixODBC-devel && \
|
unixODBC-devel && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -49,8 +49,8 @@ RUN yum --quiet makecache && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
gzip database/${ZBX_DB_TYPE}/create.sql
|
gzip database/${ZBX_DB_TYPE}/create.sql
|
||||||
|
|
||||||
@ -60,13 +60,14 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=proxy ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
ZBX_TYPE=proxy ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
||||||
@ -76,7 +77,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -84,6 +85,12 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
||||||
|
|
||||||
RUN groupadd --system zabbix && \
|
RUN groupadd --system zabbix && \
|
||||||
adduser -r --shell /sbin/nologin \
|
adduser -r --shell /sbin/nologin \
|
||||||
-g zabbix \
|
-g zabbix \
|
||||||
@ -104,7 +111,7 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl \
|
libcurl \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
@ -118,12 +125,6 @@ RUN groupadd --system zabbix && \
|
|||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG DB_TYPE=mysql
|
ARG DB_TYPE=mysql
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
@ -19,7 +19,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl3 \
|
libcurl3 \
|
||||||
libmysqlclient18 \
|
libmysqlclient18 \
|
||||||
@ -59,7 +59,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
libxml2 \
|
libxml2 \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
unixodbc 1>/dev/null && \
|
unixodbc && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -90,13 +90,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -116,8 +116,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
@ -143,8 +143,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove 1>/dev/null && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /root/.subversion
|
rm -rf /root/.subversion
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_DATE
|
|||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON="-q"
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
ZBX_TYPE=proxy ZBX_DB_TYPE=sqlite3 ZBX_OPT_TYPE=none
|
ZBX_TYPE=proxy ZBX_DB_TYPE=sqlite3 ZBX_OPT_TYPE=none
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ RUN addgroup zabbix && \
|
|||||||
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 update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
iputils \
|
iputils \
|
||||||
@ -79,11 +79,11 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -103,8 +103,8 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=proxy ZBX_DB_TYPE=sqlite3 ZBX_OPT_TYPE=none
|
ZBX_TYPE=proxy ZBX_DB_TYPE=sqlite3
|
||||||
|
|
||||||
RUN yum --quiet makecache && \
|
RUN yum --quiet makecache && \
|
||||||
yum ${YUM_FLAGS_DEV} install \
|
yum ${YUM_FLAGS_DEV} install \
|
||||||
@ -25,11 +25,11 @@ RUN yum --quiet makecache && \
|
|||||||
subversion \
|
subversion \
|
||||||
unixODBC-devel && \
|
unixODBC-devel && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -49,8 +49,8 @@ RUN yum --quiet makecache && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
gzip database/${ZBX_DB_TYPE}/create.sql
|
gzip database/${ZBX_DB_TYPE}/create.sql
|
||||||
|
|
||||||
@ -60,13 +60,14 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
ZBX_TYPE=proxy ZBX_DB_TYPE=sqlite3 ZBX_OPT_TYPE=none
|
ZBX_TYPE=proxy ZBX_DB_TYPE=sqlite3 ZBX_OPT_TYPE=none
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
||||||
@ -76,7 +77,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -84,6 +85,12 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
||||||
|
|
||||||
RUN groupadd --system zabbix && \
|
RUN groupadd --system zabbix && \
|
||||||
adduser -r --shell /sbin/nologin \
|
adduser -r --shell /sbin/nologin \
|
||||||
-g zabbix \
|
-g zabbix \
|
||||||
@ -104,7 +111,7 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl \
|
libcurl \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
@ -114,15 +121,9 @@ RUN groupadd --system zabbix && \
|
|||||||
openssl-libs \
|
openssl-libs \
|
||||||
pcre \
|
pcre \
|
||||||
unixODBC && \
|
unixODBC && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
@ -46,7 +46,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
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 && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl3 \
|
libcurl3 \
|
||||||
libopenipmi0 \
|
libopenipmi0 \
|
||||||
@ -56,7 +56,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
libssl1.0.0 \
|
libssl1.0.0 \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
unixodbc 1>/dev/null && \
|
unixodbc && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -87,13 +87,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} |grep " Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -113,8 +113,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
@ -137,8 +137,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove 1>/dev/null && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /root/.subversion
|
rm -rf /root/.subversion
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=none
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ RUN addgroup zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
iputils \
|
iputils \
|
||||||
@ -83,11 +83,11 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -109,8 +109,8 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -27,11 +27,11 @@ RUN yum --quiet makecache && \
|
|||||||
subversion \
|
subversion \
|
||||||
unixODBC-devel && \
|
unixODBC-devel && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -52,8 +52,8 @@ RUN yum --quiet makecache && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
@ -65,8 +65,9 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -81,7 +82,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -89,6 +90,12 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
||||||
|
|
||||||
RUN groupadd --system zabbix && \
|
RUN groupadd --system zabbix && \
|
||||||
adduser -r --shell /sbin/nologin \
|
adduser -r --shell /sbin/nologin \
|
||||||
-g zabbix -G dialout \
|
-g zabbix -G dialout \
|
||||||
@ -110,8 +117,8 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
iksemel \
|
iksemel \
|
||||||
libcurl \
|
libcurl \
|
||||||
@ -123,15 +130,9 @@ RUN groupadd --system zabbix && \
|
|||||||
openssl-libs \
|
openssl-libs \
|
||||||
pcre \
|
pcre \
|
||||||
unixODBC && \
|
unixODBC && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
@ -18,7 +18,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl3 \
|
libcurl3 \
|
||||||
libiksemel3 \
|
libiksemel3 \
|
||||||
@ -61,7 +61,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
libxml2 \
|
libxml2 \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
unixodbc 1>/dev/null && \
|
unixodbc && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -93,13 +93,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -120,8 +120,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
@ -150,8 +150,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove 1>/dev/null && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
rm -rf /root/.subversion
|
rm -rf /root/.subversion
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
ZBX_TYPE=server ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=none
|
ZBX_TYPE=server ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=none
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ RUN addgroup zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
iputils \
|
iputils \
|
||||||
@ -83,11 +83,11 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -109,8 +109,8 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -27,11 +27,11 @@ RUN yum --quiet makecache && \
|
|||||||
subversion \
|
subversion \
|
||||||
unixODBC-devel && \
|
unixODBC-devel && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -52,8 +52,8 @@ RUN yum --quiet makecache && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
@ -65,9 +65,9 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -82,7 +82,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -90,6 +90,12 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-centos" \
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
||||||
|
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
||||||
|
|
||||||
RUN groupadd --system zabbix && \
|
RUN groupadd --system zabbix && \
|
||||||
adduser -r --shell /sbin/nologin \
|
adduser -r --shell /sbin/nologin \
|
||||||
-g zabbix -G dialout \
|
-g zabbix -G dialout \
|
||||||
@ -111,8 +117,8 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
iksemel \
|
iksemel \
|
||||||
libcurl \
|
libcurl \
|
||||||
@ -125,15 +131,9 @@ RUN groupadd --system zabbix && \
|
|||||||
postgresql \
|
postgresql \
|
||||||
postgresql-libs \
|
postgresql-libs \
|
||||||
unixODBC && \
|
unixODBC && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE}
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/conf/zabbix_${ZBX_TYPE}.conf /etc/zabbix/zabbix_${ZBX_TYPE}.conf
|
|
||||||
COPY --from=builder /tmp/zabbix-${ZBX_VERSION}/database/${ZBX_DB_TYPE}/create.sql.gz /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/create.sql.gz
|
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
WORKDIR /var/lib/zabbix
|
WORKDIR /var/lib/zabbix
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
@ -18,7 +18,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE} && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl3 \
|
libcurl3 \
|
||||||
libiksemel3 \
|
libiksemel3 \
|
||||||
@ -61,7 +61,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
libxml2 \
|
libxml2 \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
unixodbc 1>/dev/null && \
|
unixodbc && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -93,13 +93,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -120,8 +120,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
@ -150,8 +150,8 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
make \
|
make \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove 1>/dev/null && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ LABEL org.label-schema.name="zabbix-snmptraps-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
@ -38,7 +38,7 @@ RUN addgroup zabbix && \
|
|||||||
-h /var/lib/zabbix/ \
|
-h /var/lib/zabbix/ \
|
||||||
zabbix && \
|
zabbix && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
net-snmp \
|
net-snmp \
|
||||||
supervisor && \
|
supervisor && \
|
||||||
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||||
@ -56,7 +56,7 @@ RUN addgroup zabbix && \
|
|||||||
ls -lah && \
|
ls -lah && \
|
||||||
cd /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ && \
|
cd /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ && \
|
||||||
patch -p1 < ./patches/makefile.patch && \
|
patch -p1 < ./patches/makefile.patch && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp snmptrapfmthdlr /usr/sbin/snmptrapfmthdlr && \
|
cp snmptrapfmthdlr /usr/sbin/snmptrapfmthdlr && \
|
||||||
cp snmptrapfmt /usr/sbin/snmptrapfmt && \
|
cp snmptrapfmt /usr/sbin/snmptrapfmt && \
|
||||||
cp snmptrapfmt.conf /etc/snmp/snmptrapfmt.conf && \
|
cp snmptrapfmt.conf /etc/snmp/snmptrapfmt.conf && \
|
||||||
@ -67,8 +67,8 @@ RUN addgroup zabbix && \
|
|||||||
-e '/^LOGFMT=/s/=.*/=\"$x ZBXTRAP $R $G $S $e $*\"/' \
|
-e '/^LOGFMT=/s/=.*/=\"$x ZBXTRAP $R $G $S $e $*\"/' \
|
||||||
-e "/^LOGFILE=/s/=.*/=\"\/var\/lib\/zabbix\/snmptraps\/snmptraps.log\"/" \
|
-e "/^LOGFILE=/s/=.*/=\"\/var\/lib\/zabbix\/snmptraps\/snmptraps.log\"/" \
|
||||||
"/etc/snmp/snmptrapfmt.conf" && \
|
"/etc/snmp/snmptrapfmt.conf" && \
|
||||||
rm -rf /tmp/snmptrapfmt_1.14+nmu1ubuntu2.tar.gz 1>/dev/null && \
|
rm -rf /tmp/snmptrapfmt_1.14+nmu1ubuntu2.tar.gz && \
|
||||||
rm -rf /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ 1>/dev/null && \
|
rm -rf /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ && \
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -23,7 +23,7 @@ RUN yum ${YUM_FLAGS_COMMON} makecache && \
|
|||||||
tar -zxf snmptrapfmt_1.14+nmu1ubuntu2.tar.gz && \
|
tar -zxf snmptrapfmt_1.14+nmu1ubuntu2.tar.gz && \
|
||||||
cd /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ && \
|
cd /tmp/snmptrapfmt-1.14+nmu1ubuntu1/ && \
|
||||||
patch -p1 < ./patches/makefile.patch && \
|
patch -p1 < ./patches/makefile.patch && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null
|
make -j"$(nproc)" -s
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -31,8 +31,9 @@ LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -46,7 +47,7 @@ LABEL org.label-schema.name="zabbix-snmptraps-centos" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="1.14" \
|
org.label-schema.version="1.14" \
|
||||||
org.label-schema.vcs-url="https://anonscm.debian.org/gitweb/?p=collab-maint/snmptrapfmt.git" \
|
org.label-schema.vcs-url="https://anonscm.debian.org/gitweb/?p=collab-maint/snmptrapfmt.git" \
|
||||||
@ -64,8 +65,8 @@ RUN groupadd --system zabbix && \
|
|||||||
-d /var/lib/zabbix/ \
|
-d /var/lib/zabbix/ \
|
||||||
zabbix && \
|
zabbix && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
net-snmp \
|
net-snmp \
|
||||||
supervisor && \
|
supervisor && \
|
||||||
mkdir -p /var/lib/zabbix && \
|
mkdir -p /var/lib/zabbix && \
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
MIBDIRS=/var/lib/mibs/iana:/var/lib/mibs/ietf:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-snmptraps-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
@ -44,11 +44,11 @@ RUN locale-gen $LC_ALL && \
|
|||||||
--home /var/lib/zabbix/ \
|
--home /var/lib/zabbix/ \
|
||||||
zabbix && \
|
zabbix && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
snmpd \
|
snmpd \
|
||||||
supervisor 1>/dev/null && \
|
supervisor && \
|
||||||
download-mibs 1>/dev/null && \
|
download-mibs && \
|
||||||
dpkg -i /tmp/snmptrapfmt_1.14+nmu1ubuntu2_amd64.deb && \
|
dpkg -i /tmp/snmptrapfmt_1.14+nmu1ubuntu2_amd64.deb && \
|
||||||
mkdir -p /var/lib/zabbix && \
|
mkdir -p /var/lib/zabbix && \
|
||||||
mkdir -p /var/lib/zabbix/snmptraps && \
|
mkdir -p /var/lib/zabbix/snmptraps && \
|
||||||
@ -64,7 +64,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
rm -rf /tmp/snmptrapfmt_1.14+nmu1ubuntu2_amd64.deb && \
|
rm -rf /tmp/snmptrapfmt_1.14+nmu1ubuntu2_amd64.deb && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove 1>/dev/null && \
|
apt-get ${APT_FLAGS_COMMON} autoremove 1>/dev/null && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_DATE
|
|||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON="-q"
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ RUN addgroup 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 update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
apache2 \
|
apache2 \
|
||||||
bash \
|
bash \
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
@ -51,7 +51,7 @@ RUN addgroup zabbix && \
|
|||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
php7-xmlwriter \
|
php7-xmlwriter \
|
||||||
ttf-dejavu && \
|
ttf-dejavu && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} --no-scripts apache2-ssl && \
|
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -70,14 +70,14 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
gettext \
|
gettext \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
||||||
|
|
||||||
@ -18,14 +16,14 @@ RUN yum --quiet makecache && \
|
|||||||
patch \
|
patch \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -33,13 +31,13 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
||||||
@ -68,7 +66,7 @@ RUN groupadd --system 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 && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
dejavu-sans-fonts \
|
dejavu-sans-fonts \
|
||||||
httpd \
|
httpd \
|
||||||
mariadb \
|
mariadb \
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=apache
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
mkdir -p /etc/zabbix/web && \
|
mkdir -p /etc/zabbix/web && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
apache2 \
|
apache2 \
|
||||||
libapache2-mod-php5 \
|
libapache2-mod-php5 \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
@ -42,7 +42,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
php5-json \
|
php5-json \
|
||||||
php5-ldap \
|
php5-ldap \
|
||||||
php5-mysql \
|
php5-mysql \
|
||||||
ttf-dejavu-core 1>/dev/null && \
|
ttf-dejavu-core && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -63,16 +63,16 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
apt-get ${APT_FLAGS_DEV} install \
|
apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
@ -80,13 +80,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
||||||
dpkg-reconfigure locales 1>/dev/null && \
|
dpkg-reconfigure locales && \
|
||||||
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ RUN addgroup 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 update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
apache2 \
|
apache2 \
|
||||||
bash \
|
bash \
|
||||||
php7-apache2 \
|
php7-apache2 \
|
||||||
@ -50,7 +50,7 @@ RUN addgroup zabbix && \
|
|||||||
php7-xmlwriter \
|
php7-xmlwriter \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
ttf-dejavu && \
|
ttf-dejavu && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} --no-scripts apache2-ssl && \
|
apk add ${APK_FLAGS_PERSISTENT} --no-scripts apache2-ssl && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -69,14 +69,14 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
gettext \
|
gettext \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES}
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
||||||
|
|
||||||
@ -18,14 +16,14 @@ RUN yum --quiet makecache && \
|
|||||||
patch \
|
patch \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -34,12 +32,12 @@ ARG BUILD_DATE
|
|||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="--quiet -y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
||||||
@ -68,8 +66,8 @@ RUN groupadd --system 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 && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
dejavu-sans-fonts \
|
dejavu-sans-fonts \
|
||||||
httpd \
|
httpd \
|
||||||
php \
|
php \
|
||||||
@ -81,7 +79,7 @@ RUN groupadd --system zabbix && \
|
|||||||
php-xml \
|
php-xml \
|
||||||
postgresql && \
|
postgresql && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
EXPOSE 80/TCP 443/TCP
|
EXPOSE 80/TCP 443/TCP
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=apache
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
mkdir -p /etc/zabbix/web && \
|
mkdir -p /etc/zabbix/web && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
apache2 \
|
apache2 \
|
||||||
libapache2-mod-php5 \
|
libapache2-mod-php5 \
|
||||||
php5-gd \
|
php5-gd \
|
||||||
@ -42,7 +42,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
php5-ldap \
|
php5-ldap \
|
||||||
php5-pgsql \
|
php5-pgsql \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
ttf-dejavu-core 1>/dev/null && \
|
ttf-dejavu-core && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -63,16 +63,16 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
apt-get ${APT_FLAGS_DEV} install \
|
apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
@ -80,13 +80,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
||||||
dpkg-reconfigure locales 1>/dev/null && \
|
dpkg-reconfigure locales && \
|
||||||
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ RUN addgroup 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 update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
mariadb-client-libs \
|
mariadb-client-libs \
|
||||||
@ -71,14 +71,14 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
gettext \
|
gettext \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
||||||
@ -18,14 +17,14 @@ RUN yum --quiet makecache && \
|
|||||||
patch \
|
patch \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -34,12 +33,12 @@ ARG BUILD_DATE
|
|||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="--quiet -y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
||||||
@ -68,8 +67,8 @@ RUN groupadd --system 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 && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
dejavu-sans-fonts \
|
dejavu-sans-fonts \
|
||||||
mariadb \
|
mariadb \
|
||||||
nginx \
|
nginx \
|
||||||
@ -85,7 +84,7 @@ RUN groupadd --system zabbix && \
|
|||||||
rm -f /etc/php-fpm.d/www.conf && \
|
rm -f /etc/php-fpm.d/www.conf && \
|
||||||
mkdir -p /var/lib/php/ && \
|
mkdir -p /var/lib/php/ && \
|
||||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
EXPOSE 80/TCP 443/TCP
|
EXPOSE 80/TCP 443/TCP
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -35,12 +35,12 @@ RUN locale-gen $LC_ALL && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_COMMON} install \
|
apt-get ${APT_FLAGS_COMMON} install \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CODENAME') && \
|
DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CODENAME') && \
|
||||||
wget -q https://nginx.org/keys/nginx_signing.key -O- | apt-key add - && \
|
wget -q https://nginx.org/keys/nginx_signing.key -O- | apt-key add - && \
|
||||||
echo "deb http://nginx.org/packages/ubuntu/ $DISTRIB_CODENAME nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
echo "deb http://nginx.org/packages/ubuntu/ $DISTRIB_CODENAME nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
nginx \
|
nginx \
|
||||||
php5-fpm \
|
php5-fpm \
|
||||||
@ -49,9 +49,9 @@ RUN locale-gen $LC_ALL && \
|
|||||||
php5-ldap \
|
php5-ldap \
|
||||||
php5-mysql \
|
php5-mysql \
|
||||||
supervisor \
|
supervisor \
|
||||||
ttf-dejavu-core 1>/dev/null && \
|
ttf-dejavu-core && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
mkdir -p /var/lib/php5 && \
|
mkdir -p /var/lib/php5 && \
|
||||||
@ -75,16 +75,16 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
apt-get ${APT_FLAGS_DEV} install \
|
apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
@ -92,13 +92,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
||||||
dpkg-reconfigure locales 1>/dev/null && \
|
dpkg-reconfigure locales && \
|
||||||
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-alpine" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ RUN addgroup 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 update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
nginx \
|
nginx \
|
||||||
php7-bcmath \
|
php7-bcmath \
|
||||||
@ -70,14 +70,14 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
gettext \
|
gettext \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
apk del ${APK_FLAGS_COMMON} --purge \
|
apk del ${APK_FLAGS_COMMON} --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
||||||
|
|
||||||
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
COPY ["conf/tmp/font-config", "/tmp/font-config"]
|
||||||
@ -18,14 +17,14 @@ RUN yum --quiet makecache && \
|
|||||||
patch \
|
patch \
|
||||||
subversion && \
|
subversion && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /tmp/zabbix/ && \
|
cd /tmp/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
rm /tmp/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -33,13 +32,13 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
ENV ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
TERM=xterm \
|
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
||||||
|
|
||||||
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-centos" \
|
||||||
@ -68,8 +67,8 @@ RUN groupadd --system 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 && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install supervisor \
|
yum ${YUM_FLAGS_PERSISTENT} install supervisor \
|
||||||
dejavu-sans-fonts \
|
dejavu-sans-fonts \
|
||||||
nginx \
|
nginx \
|
||||||
postgresql \
|
postgresql \
|
||||||
@ -84,7 +83,7 @@ RUN groupadd --system zabbix && \
|
|||||||
rm -f /etc/php-fpm.d/www.conf && \
|
rm -f /etc/php-fpm.d/www.conf && \
|
||||||
mkdir -p /var/lib/php/ && \
|
mkdir -p /var/lib/php/ && \
|
||||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
EXPOSE 80/TCP 443/TCP
|
EXPOSE 80/TCP 443/TCP
|
||||||
|
@ -4,8 +4,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive TERM=xterm \
|
||||||
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
ZBX_TYPE=frontend ZBX_DB_TYPE=postgresql ZBX_OPT_TYPE=nginx
|
||||||
@ -17,7 +17,7 @@ LABEL org.label-schema.name="zabbix-web-${ZBX_OPT_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0"
|
org.label-schema.license="GPL v2.0"
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
@ -35,12 +35,12 @@ RUN locale-gen $LC_ALL && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix && \
|
chown --quiet -R zabbix:root /etc/zabbix && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_COMMON} install \
|
apt-get ${APT_FLAGS_COMMON} install \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CODENAME') && \
|
DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CODENAME') && \
|
||||||
wget -q https://nginx.org/keys/nginx_signing.key -O- | apt-key add - && \
|
wget -q https://nginx.org/keys/nginx_signing.key -O- | apt-key add - && \
|
||||||
echo "deb http://nginx.org/packages/ubuntu/ $DISTRIB_CODENAME nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
echo "deb http://nginx.org/packages/ubuntu/ $DISTRIB_CODENAME nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
nginx \
|
nginx \
|
||||||
php5-fpm \
|
php5-fpm \
|
||||||
php5-gd \
|
php5-gd \
|
||||||
@ -49,9 +49,9 @@ RUN locale-gen $LC_ALL && \
|
|||||||
php5-pgsql \
|
php5-pgsql \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
supervisor \
|
supervisor \
|
||||||
ttf-dejavu-core 1>/dev/null && \
|
ttf-dejavu-core && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
mkdir -p /var/lib/php5 && \
|
mkdir -p /var/lib/php5 && \
|
||||||
@ -75,16 +75,16 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
apt-get ${APT_FLAGS_DEV} install \
|
apt-get ${APT_FLAGS_DEV} install \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
@ -92,13 +92,13 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
||||||
dpkg-reconfigure locales 1>/dev/null && \
|
dpkg-reconfigure locales && \
|
||||||
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
gettext \
|
gettext \
|
||||||
patch \
|
patch \
|
||||||
subversion 1>/dev/null && \
|
subversion && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
FROM alpine:3.4 as builder
|
FROM alpine:3.4 as builder
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -30,13 +31,13 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -59,8 +60,8 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
@ -79,8 +80,9 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APK_FLAGS_COMMON="-q"
|
ARG APK_FLAGS_COMMON=""
|
||||||
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
ARG APK_FLAGS_PERSISTENT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -137,7 +139,7 @@ RUN addgroup zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add ${APK_FLAGS_PERSISTANT} \
|
apk add ${APK_FLAGS_PERSISTENT} \
|
||||||
bash \
|
bash \
|
||||||
fping \
|
fping \
|
||||||
iputils \
|
iputils \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM centos:centos7 as builder
|
FROM centos:centos7 as builder
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -33,13 +33,13 @@ RUN yum ${YUM_FLAGS_DEV} install epel-release && \
|
|||||||
subversion \
|
subversion \
|
||||||
unixODBC-devel && \
|
unixODBC-devel && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -61,8 +61,8 @@ RUN yum ${YUM_FLAGS_DEV} install epel-release && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
@ -73,7 +73,7 @@ RUN yum ${YUM_FLAGS_DEV} install epel-release && \
|
|||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -82,7 +82,8 @@ ARG BUILD_DATE
|
|||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="--quiet -y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -138,8 +139,8 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
chown --quiet -R zabbix:root /var/lib/zabbix && \
|
||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
||||||
yum ${YUM_FLAGS_COMMON} makecache && \
|
yum ${YUM_FLAGS_COMMON} makecache && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install epel-release && \
|
yum ${YUM_FLAGS_PERSISTENT} install epel-release && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} install \
|
yum ${YUM_FLAGS_PERSISTENT} install \
|
||||||
OpenIPMI-libs \
|
OpenIPMI-libs \
|
||||||
dejavu-sans-fonts \
|
dejavu-sans-fonts \
|
||||||
fping \
|
fping \
|
||||||
@ -168,7 +169,7 @@ RUN groupadd --system zabbix && \
|
|||||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||||
ls -lah /usr/share/zabbix/ && \
|
ls -lah /usr/share/zabbix/ && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||||
rm -rf /var/cache/yum/
|
rm -rf /var/cache/yum/
|
||||||
|
|
||||||
EXPOSE 80/TCP 443/TCP 10051/TCP
|
EXPOSE 80/TCP 443/TCP 10051/TCP
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
FROM registry.access.redhat.com/rhel7
|
FROM registry.access.redhat.com/rhel7
|
||||||
MAINTAINER Alexey Pustovalov <alexey.pustovalov@zabbix.com>
|
MAINTAINER Alexey Pustovalov <alexey.pustovalov@zabbix.com>
|
||||||
|
|
||||||
ARG YUM_FLAGS_COMMON="--quiet -y"
|
ARG YUM_FLAGS_COMMON="-y"
|
||||||
ARG YUM_FLAGS_PERSISTANT="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_PERSISTENT="${YUM_FLAGS_COMMON}"
|
||||||
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
ARG YUM_FLAGS_DEV="${YUM_FLAGS_COMMON}"
|
||||||
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
ENV TERM=xterm MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
ZBX_TYPE=server ZBX_DB_TYPE=mysql ZBX_OPT_TYPE=nginx \
|
||||||
@ -38,7 +38,7 @@ LABEL name="zabbix/zabbix-appliance" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -135,13 +135,13 @@ RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supporte
|
|||||||
unixODBC-devel" && \
|
unixODBC-devel" && \
|
||||||
yum -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
yum -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -163,8 +163,8 @@ RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supporte
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
cp src/zabbix_${ZBX_TYPE}/zabbix_${ZBX_TYPE} /usr/sbin/zabbix_${ZBX_TYPE} && \
|
||||||
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||||
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||||
@ -182,16 +182,16 @@ RUN REPOLIST="rhel-7-server-rpms,rhel-7-server-optional-rpms,zabbix-non-supporte
|
|||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||||
cd /usr/share/ && \
|
cd /usr/share/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES}/frontends/php/ zabbix && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
patch -p3 < /tmp/font-config && \
|
patch -p3 < /tmp/font-config && \
|
||||||
rm /tmp/font-config && \
|
rm /tmp/font-config && \
|
||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
rm /usr/share/zabbix/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null && \
|
./locale/make_mo.sh && \
|
||||||
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
ln -s /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||||
yum ${YUM_FLAGS_COMMON} history undo `yum history | sed -n 4p |column -t | cut -d' ' -f1` 1>/dev/null && \
|
yum ${YUM_FLAGS_COMMON} history undo `yum history | sed -n 4p |column -t | cut -d' ' -f1` && \
|
||||||
yum ${YUM_FLAGS_COMMON} clean all && \
|
yum ${YUM_FLAGS_COMMON} clean all && \
|
||||||
rm -rf /var/cache/yum && \
|
rm -rf /var/cache/yum && \
|
||||||
rm -rf /var/lib/yum/yumdb/* && \
|
rm -rf /var/lib/yum/yumdb/* && \
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
FROM ubuntu:trusty as builder
|
FROM ubuntu:trusty as builder
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_DEV="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -34,15 +35,15 @@ RUN locale-gen $LC_ALL && \
|
|||||||
patch \
|
patch \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
subversion \
|
subversion \
|
||||||
unixodbc-dev 1>/dev/null && \
|
unixodbc-dev && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} 1>/dev/null && \
|
svn --quiet export ${ZBX_SOURCES} zabbix-${ZBX_VERSION} && \
|
||||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||||
zabbix_revision=`svn info ${ZBX_SOURCES} |grep "Last Changed Rev"|awk '{print $4;}'` && \
|
zabbix_revision=`svn info ${ZBX_SOURCES} | grep "Last Changed Rev"|awk '{print $4;}'` && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
|
||||||
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \
|
||||||
./bootstrap.sh 1>/dev/null && \
|
./bootstrap.sh && \
|
||||||
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
|
||||||
./configure \
|
./configure \
|
||||||
--datadir=/usr/lib \
|
--datadir=/usr/lib \
|
||||||
@ -64,8 +65,8 @@ RUN locale-gen $LC_ALL && \
|
|||||||
--with-unixodbc \
|
--with-unixodbc \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--silent && \
|
--silent && \
|
||||||
make -j"$(nproc)" -s dbschema 1>/dev/null && \
|
make -j"$(nproc)" -s dbschema && \
|
||||||
make -j"$(nproc)" -s 1>/dev/null && \
|
make -j"$(nproc)" -s && \
|
||||||
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/schema.sql > database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/images.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
cat database/${ZBX_DB_TYPE}/data.sql >> database/${ZBX_DB_TYPE}/create.sql && \
|
||||||
@ -76,7 +77,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
rm -f conf/zabbix.conf.php && \
|
rm -f conf/zabbix.conf.php && \
|
||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
rm /tmp/zabbix-${ZBX_VERSION}/frontends/php/fonts/DejaVuSans.ttf && \
|
||||||
./locale/make_mo.sh 2>/dev/null
|
./locale/make_mo.sh
|
||||||
|
|
||||||
FROM ubuntu:trusty
|
FROM ubuntu:trusty
|
||||||
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
||||||
@ -84,8 +85,8 @@ LABEL maintainer="Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
ARG APT_FLAGS_COMMON="-qq -y"
|
ARG APT_FLAGS_COMMON="-y"
|
||||||
ARG APT_FLAGS_PERSISTANT="${APT_FLAGS_COMMON} --no-install-recommends"
|
ARG APT_FLAGS_PERSISTENT="${APT_FLAGS_COMMON} --no-install-recommends"
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
ARG ZBX_SOURCES=svn://svn.zabbix.com/tags/${ZBX_VERSION}/
|
||||||
@ -102,7 +103,7 @@ LABEL org.label-schema.name="zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}-ubuntu" \
|
|||||||
org.label-schema.vcs-ref="${VCS_REF}" \
|
org.label-schema.vcs-ref="${VCS_REF}" \
|
||||||
org.label-schema.build-date="${BUILD_DATE}" \
|
org.label-schema.build-date="${BUILD_DATE}" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.license="GPL 2.0" \
|
org.label-schema.license="GPL v2.0" \
|
||||||
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
org.label-schema.usage="https://www.zabbix.com/documentation/${MAJOR_VERSION}/manual/installation/containers" \
|
||||||
org.label-schema.version="${ZBX_VERSION}" \
|
org.label-schema.version="${ZBX_VERSION}" \
|
||||||
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
org.label-schema.vcs-url="${ZBX_SOURCES}" \
|
||||||
@ -147,12 +148,12 @@ RUN locale-gen $LC_ALL && \
|
|||||||
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
mkdir -p /usr/share/doc/zabbix-${ZBX_TYPE}-${ZBX_DB_TYPE}/ && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_COMMON} install \
|
apt-get ${APT_FLAGS_COMMON} install \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CODENAME') && \
|
DISTRIB_CODENAME=$(/bin/bash -c 'source /etc/lsb-release && echo $DISTRIB_CODENAME') && \
|
||||||
wget -q https://nginx.org/keys/nginx_signing.key -O- | apt-key add - && \
|
wget -q https://nginx.org/keys/nginx_signing.key -O- | apt-key add - && \
|
||||||
echo "deb http://nginx.org/packages/ubuntu/ $DISTRIB_CODENAME nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
echo "deb http://nginx.org/packages/ubuntu/ $DISTRIB_CODENAME nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
||||||
apt-get ${APT_FLAGS_COMMON} update && \
|
apt-get ${APT_FLAGS_COMMON} update && \
|
||||||
apt-get ${APT_FLAGS_PERSISTANT} install \
|
apt-get ${APT_FLAGS_PERSISTENT} install \
|
||||||
fping \
|
fping \
|
||||||
libcurl3 \
|
libcurl3 \
|
||||||
libiksemel3 \
|
libiksemel3 \
|
||||||
@ -174,7 +175,7 @@ RUN locale-gen $LC_ALL && \
|
|||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
supervisor \
|
supervisor \
|
||||||
ttf-dejavu-core \
|
ttf-dejavu-core \
|
||||||
unixodbc 1>/dev/null && \
|
unixodbc && \
|
||||||
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf \
|
||||||
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
zabbix-frontend-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 10 && \
|
||||||
mkdir -p /var/lib/locales/supported.d/ && \
|
mkdir -p /var/lib/locales/supported.d/ && \
|
||||||
@ -182,9 +183,9 @@ RUN locale-gen $LC_ALL && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
xargs -I '{}' bash -c 'echo "{}.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
|
||||||
dpkg-reconfigure locales 1>/dev/null && \
|
dpkg-reconfigure locales && \
|
||||||
apt-get ${APT_FLAGS_COMMON} purge \
|
apt-get ${APT_FLAGS_COMMON} purge \
|
||||||
wget 1>/dev/null && \
|
wget && \
|
||||||
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
apt-get ${APT_FLAGS_COMMON} autoremove && \
|
||||||
apt-get ${APT_FLAGS_COMMON} clean && \
|
apt-get ${APT_FLAGS_COMMON} clean && \
|
||||||
mkdir -p /var/lib/php5 && \
|
mkdir -p /var/lib/php5 && \
|
||||||
|
Loading…
Reference in New Issue
Block a user