Fixed Ubuntu based Agent2 image building. Go lang min version 1.16

This commit is contained in:
dotneft 2021-09-11 23:36:06 +03:00
parent f58ff1d69e
commit 498f3d02ee

View File

@ -58,6 +58,7 @@ LABEL org.opencontainers.image.documentation="https://www.zabbix.com/documentati
org.opencontainers.image.source="${ZBX_SOURCES}" org.opencontainers.image.source="${ZBX_SOURCES}"
RUN set -eux && \ RUN set -eux && \
export PATH=/usr/lib/go-1.16/bin:$PATH && \
apt-get -y update && \ apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
autoconf \ autoconf \
@ -69,7 +70,7 @@ RUN set -eux && \
pkg-config \ pkg-config \
git \ git \
g++ \ g++ \
golang && \ golang-1.16 && \
cd /tmp/ && \ cd /tmp/ && \
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch zabbix-${ZBX_VERSION} && \ git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
cd /tmp/zabbix-${ZBX_VERSION} && \ cd /tmp/zabbix-${ZBX_VERSION} && \