-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (17 loc) · 1.06 KB
/
Copy pathDockerfile
File metadata and controls
28 lines (17 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM maven AS build
COPY ./settings.xml /root/.m2/settings.xml
RUN git clone https://github.com/thomas-2020/entirex-broker-metrics-exporter.git
RUN mvn install:install-file -Dfile=./entirex-broker-metrics-exporter/libs/exx107/entirex.jar -DgroupId=com.softwareag.entirex -DartifactId=java-client -Dversion=10.7 -Dpackaging=jar -DgeneratePom=true
RUN mvn install:install-file -Dfile=./entirex-broker-metrics-exporter/libs/exx107/exxutil.jar -DgroupId=com.softwareag.entirex -DartifactId=java-util -Dversion=10.7 -Dpackaging=jar -DgeneratePom=true
RUN cd entirex-broker-metrics-exporter ; mvn install
# ... build is finished
# ---------------------
# start runtime ...
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install openjdk-21-jre -y
COPY --from=build /entirex-broker-metrics-exporter/application.properties /
COPY --from=build /entirex-broker-metrics-exporter/target/entirex-broker-metrics-exporter-0.0.1-SNAPSHOT.jar /
# ToDo: Set non-root user for running ...
# USER sagadmin
ENTRYPOINT ["java", "-jar", "/entirex-broker-metrics-exporter-0.0.1-SNAPSHOT.jar"]