X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm-manager%2FDockerfile;h=90164fd7029b66c259e6a225f731fb1631836bfd;hb=63d4c8e7070614f02ce54f0112e8ef89098088e2;hp=b9283c09fd82c67a562d3641412b461b5f8cc69e;hpb=9cd4d7948e24a7f77b2c207c4f37999878373260;p=nonrtric.git diff --git a/helm-manager/Dockerfile b/helm-manager/Dockerfile index b9283c09..90164fd7 100644 --- a/helm-manager/Dockerfile +++ b/helm-manager/Dockerfile @@ -15,21 +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 curl -RUN apt-get update -RUN apt-get install -y curl +FROM openjdk:11-jre-slim #Install helm -RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 -RUN chmod 700 get_helm.sh -RUN ./get_helm.sh +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 curl -LO https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl +#Install kubectl +COPY --from=build /tmp/kubectl . RUN chmod +x ./kubectl