X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm-manager%2FDockerfile;h=90164fd7029b66c259e6a225f731fb1631836bfd;hb=63d4c8e7070614f02ce54f0112e8ef89098088e2;hp=c54b615c6785f0e4a44f40d472017bc95549259e;hpb=6a0120833174d5f714b4b3d72bb01159a18544b0;p=nonrtric.git diff --git a/helm-manager/Dockerfile b/helm-manager/Dockerfile index c54b615c..90164fd7 100644 --- a/helm-manager/Dockerfile +++ b/helm-manager/Dockerfile @@ -15,20 +15,26 @@ # ============LICENSE_END================================================= # -FROM adoptopenjdk/openjdk11:jre-11.0.11_9-alpine +FROM curlimages/curl:7.78.0 AS build -ARG JAR +#Get helm +RUN curl -Lo /tmp/helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz -#Install wget -RUN apk update && apk add wget +#Get kubectl +RUN curl -Lo /tmp/kubectl https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl + + +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