Fixed Zabbix agent 2 (go) version file location

This commit is contained in:
Alexey Pustovalov 2019-11-28 14:39:21 +09:00
parent e12f729b96
commit b3b29f4238

View File

@ -55,7 +55,7 @@ RUN set -eux && \
git clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
cd /tmp/zabbix-${ZBX_VERSION} && \
zabbix_revision=`git rev-parse --short HEAD` && \
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" go/src/zabbix/pkg/version/version.go && \
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" src/go/pkg/version/version.go && \
./bootstrap.sh && \
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
export GOPATH=/tmp/zabbix-${ZBX_VERSION}/go && \