Fix the helm downloading script error in the CI pipeline. 28/5928/2
authorZhe <zhehuang@research.att.com>
Fri, 23 Apr 2021 14:10:26 +0000 (10:10 -0400)
committerZhe <zhehuang@research.att.com>
Fri, 23 Apr 2021 14:19:03 +0000 (10:19 -0400)
Signed-off-by: Zhe <zhehuang@research.att.com>
Change-Id: Ib91efd3b03a2576dc653abc6294f8b88e968de23

ci/Dockerfile

index c1080e0..235b267 100644 (file)
 #   limitations under the License.
 #
 ##############################################################################
-
 FROM ubuntu:18.04
-RUN apt-get update && apt-get -y install curl ca-certificates
-ARG GH=get_helm.sh
+RUN apt-get update && apt-get -y install curl ca-certificates wget
+ARG HELMVERSION=v2.17.0
 # often times out during LF jenkins build
-RUN curl --silent --show-error --connect-timeout 10 --retry 6 -L https://raw.githubusercontent.com/helm/helm/master/scripts/get -o ${GH}
-RUN bash ${GH}
+RUN wget https://get.helm.sh/helm-${HELMVERSION}-linux-amd64.tar.gz && tar -xvf ../helm-${HELMVERSION}-linux-amd64.tar.gz && mv linux-amd64/helm /usr/local/bin/helm
 RUN helm init -c --skip-repos
 ARG TGT=/tmp/it-dep
 COPY . $TGT