blob: cd44c90996302d6e5343453a9f73eb3e8339e458 [file] [log] [blame]
BjornMagnussonXA31b09882021-06-02 01:56:26 +02001# ============LICENSE_START===============================================
2# Copyright (C) 2020 Nordix Foundation. All rights reserved.
3# ========================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15# ============LICENSE_END=================================================
16#
17
18FROM openjdk:11-jre-slim
19
20ARG JAR
21
22#Install curl
23RUN apt-get update
24RUN apt-get install -y curl
elinuxhenrika7598e82021-06-23 15:57:22 +020025RUN apt-get install -y wget
BjornMagnussonXA31b09882021-06-02 01:56:26 +020026
27#Install helm
elinuxhenrika7598e82021-06-23 15:57:22 +020028RUN wget -O helm.tar.gz https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz
29RUN tar -zxvf helm.tar.gz
30RUN mv linux-amd64/helm /usr/local/bin/helm
BjornMagnussonXA31b09882021-06-02 01:56:26 +020031
32#Install kubectl and configure
33RUN curl -LO https://dl.k8s.io/release/v1.20.2/bin/linux/amd64/kubectl
34
35RUN chmod +x ./kubectl
36
37RUN mv ./kubectl /usr/local/bin/kubectl
38
39# Copy app config and app jar
40WORKDIR /opt/app/helm-manager/src/main/resources/config
41
42COPY config/KubernetesParticipantConfig.json .
43COPY config/application.yaml .
44
45WORKDIR /opt/app/helm-manager
46COPY target/app.jar app.jar
47
48CMD [ "java", "-jar", "app.jar" ]