From 5ed2d9de77773f5c0fc580b1f519b416278caf93 Mon Sep 17 00:00:00 2001 From: Taras Drozdovskyi Date: Tue, 4 Oct 2022 05:30:18 +0300 Subject: [PATCH] Specify the certificate location for wget tool (#633) Signed-off-by: Taras Drozdovskyi --- configs/defdockerfiles/ubuntu_multistage | 2 +- script/install-golang.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/defdockerfiles/ubuntu_multistage b/configs/defdockerfiles/ubuntu_multistage index 0df3a257..52210930 100644 --- a/configs/defdockerfiles/ubuntu_multistage +++ b/configs/defdockerfiles/ubuntu_multistage @@ -3,7 +3,7 @@ FROM --platform=$TARGETPLATFORM ubuntu:20.04 AS builder # environment variables ARG TARGETPLATFORM -ENV GOVERSION=1.19 +ENV GOVERSION=1.19.1 ENV GOPATH=/usr/local/go ENV TARGET_DIR=/edge-orchestration diff --git a/script/install-golang.sh b/script/install-golang.sh index bf84bc43..2ab33281 100755 --- a/script/install-golang.sh +++ b/script/install-golang.sh @@ -11,6 +11,6 @@ elif [ $TARGETPLATFORM = "linux/arm/v7" ]; then arch="armv6l" fi -wget https://golang.org/dl/go$GOVERSION.linux-$arch.tar.gz && \ +wget --ca-certificate=/etc/ssl/certs/ca-certificates.crt https://golang.org/dl/go$GOVERSION.linux-$arch.tar.gz && \ tar -C /usr/local -xzf go$GOVERSION.linux-$arch.tar.gz && \ ln -s $GOPATH/bin/go /usr/bin/