diff --git a/contrib/teamcity/setup-debian-buster.sh b/contrib/teamcity/setup-debian-buster.sh --- a/contrib/teamcity/setup-debian-buster.sh +++ b/contrib/teamcity/setup-debian-buster.sh @@ -122,3 +122,13 @@ pip3 install teamcity-messages # Python library for merging nested structures pip3 install deepmerge + +# Install golang +GOLANG_ARCHIVE=go1.14.6.linux-amd64.tar.gz +wget https://golang.org/dl/"${GOLANG_ARCHIVE}" +echo "5c566ddc2e0bcfc25c26a5dc44a440fcc0177f7350c1f01952b34d5989a0d287 ${GOLANG_ARCHIVE}" | sha256sum -c +tar -C /usr/local -xzf "${GOLANG_ARCHIVE}" +update-alternatives --install /usr/bin/go go /usr/local/go/bin/go 100 + +# We don't need the archive in the final image +rm "${GOLANG_ARCHIVE}"