From e0437a4237c99a16955d5ec56ff5fe9996c76b57 Mon Sep 17 00:00:00 2001 From: Remigiusz Janeczek Date: Tue, 16 Mar 2021 16:00:26 +0100 Subject: Add helm validator sources Issue-ID: SDC-3185 Signed-off-by: Remigiusz Janeczek Change-Id: I32dea3b4294a90c4dfc75864fb4200f044e7a0b6 --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e22a242 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0 + +ARG VERSION=${version} + +USER root +RUN adduser -G onap -D validator + +RUN apk add --no-cache bash vim curl wget + +ENV HELM_SUPPORTED_VERSIONS=3.5.2,3.4.1,3.3.4,2.17.0,2.14.3 + +#Installing Helm +COPY scripts/collect_helm_versions_from_web.sh ./opt/helmvalidator/tmp/collect_helm_versions_from_web.sh +RUN chmod +x ./opt/helmvalidator/tmp/collect_helm_versions_from_web.sh +RUN ./opt/helmvalidator/tmp/collect_helm_versions_from_web.sh +RUN rm -r ./opt/helmvalidator/tmp + +RUN mkdir /charts +RUN chown -R validator:onap /charts + +USER validator:onap + +COPY target/sdc-helm-validator-${VERSION}.jar ./opt/helmvalidator/helmvalidator.jar + +ENTRYPOINT ["java","-XX:+UseParallelGC","-XX:MinRAMPercentage=50","-XX:MaxRAMPercentage=50","-XX:MinHeapFreeRatio=10","-XX:MaxHeapFreeRatio=20","-jar","./opt/helmvalidator/helmvalidator.jar"] -- cgit 1.2.3-korg