From 498f3d02eee7b00079a120215063e8c9e44e97e9 Mon Sep 17 00:00:00 2001 From: dotneft Date: Sat, 11 Sep 2021 23:36:06 +0300 Subject: [PATCH] Fixed Ubuntu based Agent2 image building. Go lang min version 1.16 --- agent2/ubuntu/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent2/ubuntu/Dockerfile b/agent2/ubuntu/Dockerfile index 0a102b5af..932f6d647 100644 --- a/agent2/ubuntu/Dockerfile +++ b/agent2/ubuntu/Dockerfile @@ -58,6 +58,7 @@ LABEL org.opencontainers.image.documentation="https://www.zabbix.com/documentati org.opencontainers.image.source="${ZBX_SOURCES}" RUN set -eux && \ + export PATH=/usr/lib/go-1.16/bin:$PATH && \ apt-get -y update && \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ autoconf \ @@ -69,7 +70,7 @@ RUN set -eux && \ pkg-config \ git \ g++ \ - golang && \ + golang-1.16 && \ cd /tmp/ && \ git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch zabbix-${ZBX_VERSION} && \ cd /tmp/zabbix-${ZBX_VERSION} && \