Helm manager app
Docker scripts
Kubernetes script
Image build scripts
Config files
Test files
Issue-ID: NONRTRIC-529
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: I25deb86bc815c5d63c5ff7c0dcb7a157ddee734e
diff --git a/helm-manager/Dockerfile b/helm-manager/Dockerfile
new file mode 100644
index 0000000..b9283c0
--- /dev/null
+++ b/helm-manager/Dockerfile
@@ -0,0 +1,47 @@
+# ============LICENSE_START===============================================
+# Copyright (C) 2020 Nordix Foundation. All rights reserved.
+# ========================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=================================================
+#
+
+FROM openjdk:11-jre-slim
+
+ARG JAR
+
+#Install curl
+RUN apt-get update
+RUN apt-get install -y curl
+
+#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
+
+#Install kubectl and configure
+RUN curl -LO https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl
+
+RUN chmod +x ./kubectl
+
+RUN mv ./kubectl /usr/local/bin/kubectl
+
+# Copy app config and app jar
+WORKDIR /opt/app/helm-manager/src/main/resources/config
+
+COPY config/KubernetesParticipantConfig.json .
+COPY config/application.yaml .
+
+WORKDIR /opt/app/helm-manager
+COPY target/app.jar app.jar
+
+CMD [ "java", "-jar", "app.jar" ]