Meridio: Update to Golang 1.19
[infra/tools.git] / infra / jenkins / slave-setup / nordix-nsm-build-server / configure-image-ubuntu1804.sh
index 5b2561b4ac87b0ee1cf38014f1766f068ecd9d24..5eca2cad8f7ee19b907e31c105d16cb0aaf759bf 100644 (file)
@@ -28,12 +28,19 @@ sudo apt upgrade -y
 # install basic dependencies
 sudo apt install -y make openjdk-11-jre-headless apt-transport-https ca-certificates curl gnupg jq software-properties-common build-essential
 
+# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
+# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
+# remove outdated certificate from system
+sudo rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+# update ca-certificates
+sudo update-ca-certificates --fresh --verbose
+
 # set versions of various things for NSM for visibility and ease of maintenance
-DOCKER_CE_VERSION="5:20.10.5~3-0~ubuntu-bionic"
-DOCKER_CE_CLI_VERSION="5:20.10.5~3-0~ubuntu-bionic"
-CONTAINERD_IO_VERSION="1.4.4-1"
-GO_VERSION="1.16.4"
-GO_LINT_VERSION="1.39.0"
+DOCKER_CE_VERSION="5:20.10.17~3-0~ubuntu-bionic"
+DOCKER_CE_CLI_VERSION="5:20.10.17~3-0~ubuntu-bionic"
+CONTAINERD_IO_VERSION="1.6.6-1"
+GO_VERSION="1.19"
+GO_LINT_VERSION="1.47.2"
 FOSSA_CLI_VERSION="1.1.7"
 
 # install docker-ce, docker-ce-cli, containerd.io and mark them hold