Revert "Skip installation of curl in helm-manager" 65/6665/2
authorMuhammad Rehan Raza <muhammad.rehan.raza@est.tech>
Mon, 6 Sep 2021 09:50:30 +0000 (09:50 +0000)
committerMuhammad Rehan Raza <muhammad.rehan.raza@est.tech>
Mon, 6 Sep 2021 09:52:37 +0000 (09:52 +0000)
This reverts commit d06d6a3f1454231ac9fa7304f22a0c2f3f246e13.

Reason for revert: The "apt-get update" still fails after this change.

Issue-ID: NONRTRIC-573
Change-Id: I0ea4a8ef0de695778c06e5e505940e85c3001dce
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
helm-manager/Dockerfile

index a70af54..c7de28a 100644 (file)
@@ -19,8 +19,8 @@ FROM openjdk:11-jre-slim
 
 ARG JAR
 
-#Install wget
-RUN apt-get update && apt-get install -y wget
+#Install curl and wget
+RUN apt-get update && apt-get install -y --no-install-recommends curl wget && rm -rf /var/lib/apt/lists/*
 
 #Install helm
 RUN wget -O helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz
@@ -28,7 +28,7 @@ RUN tar -zxvf helm.tar.gz
 RUN mv linux-amd64/helm /usr/local/bin/helm
 
 #Install kubectl and configure
-RUN wget https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl
+RUN curl -LO https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl
 
 RUN chmod +x ./kubectl