forked from folio-org/mod-bulk-operations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 645 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (17 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM folioci/alpine-jre-openjdk17:latest
# Copy your fat jar to the container
ENV APP_FILE mod-bulk-operations-fat.jar
# - should be a single jar file
ARG JAR_FILE=./target/*.jar
# - install SFTP client
USER root
RUN apk add --update --no-cache openssh sshpass
USER folio
# - copy
COPY ${JAR_FILE} ${JAVA_APP_DIR}/${APP_FILE}
# Add JMX exporter and config
RUN mkdir -p jmx_exporter &&\
wget -P jmx_exporter https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.17.2/jmx_prometheus_javaagent-0.17.2.jar
COPY ./prometheus-jmx-config.yaml jmx_exporter/
# Expose this port locally in the container.
EXPOSE 8081 9991