Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Sonar for DMaaP Mediator
[nonrtric.git]
/
helm-manager
/
Dockerfile
diff --git
a/helm-manager/Dockerfile
b/helm-manager/Dockerfile
index
b9283c0
..
90164fd
100644
(file)
--- a/
helm-manager/Dockerfile
+++ b/
helm-manager/Dockerfile
@@
-15,21
+15,26
@@
# ============LICENSE_END=================================================
#
# ============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
#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
RUN chmod +x ./kubectl