X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm-manager%2FDockerfile;h=90164fd7029b66c259e6a225f731fb1631836bfd;hb=63d4c8e7070614f02ce54f0112e8ef89098088e2;hp=a70af54f0363cb4e5011626275502f8d22c1f396;hpb=7f2643c3e8f96c10255aa523239fb3f64f772840;p=nonrtric.git diff --git a/helm-manager/Dockerfile b/helm-manager/Dockerfile index a70af54f..90164fd7 100644 --- a/helm-manager/Dockerfile +++ b/helm-manager/Dockerfile @@ -15,20 +15,26 @@ # ============LICENSE_END================================================= # -FROM openjdk:11-jre-slim +FROM curlimages/curl:7.78.0 AS build + +#Get helm +RUN curl -Lo /tmp/helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz + +#Get kubectl +RUN curl -Lo /tmp/kubectl https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl -ARG JAR -#Install wget -RUN apt-get update && apt-get install -y wget +FROM openjdk:11-jre-slim #Install helm -RUN wget -O helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz +COPY --from=build /tmp/helm.tar.gz . + 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 +#Install kubectl +COPY --from=build /tmp/kubectl . RUN chmod +x ./kubectl