-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
27 lines (20 loc) · 1.21 KB
/
Dockerfile
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
# Builds a docker image from the Maven war. Requires 'mvn package' to have been run beforehand
FROM tomcat:9.0-jre21
LABEL Author="Europeana Foundation <[email protected]>"
WORKDIR /usr/local/tomcat/webapps
ENV ELASTIC_APM_VERSION 1.52.1
RUN wget https://repo1.maven.org/maven2/co/elastic/apm/elastic-apm-agent/$ELASTIC_APM_VERSION/elastic-apm-agent-$ELASTIC_APM_VERSION.jar -O /usr/local/elastic-apm-agent.jar
# Copy unzipped directory so we can mount config files in Kubernetes pod
COPY api2-war/target/api/ ./ROOT/
# Remove properties file and credentials. Don't fail if either file is missing
RUN rm -f ./ROOT/WEB-INF/classes/europeana.user.properties
#EA-3783-Replace tomacat server.xml with the one which has configuration change for maxHttpHeaderSize to be 16kb
COPY api2-war/target/api/WEB-INF/classes/tomcat/server.xml /usr/local/tomcat/conf/
# Uncomment the options below and map port number 9010 to enable profiling in the docker container
#EXPOSE 8080
#EXPOSE 9010
#ENV CATALINA_OPTS="-Dcom.sun.management.jmxremote \
#-Dcom.sun.management.jmxremote.port=9010 \
#-Dcom.sun.management.jmxremote.local.only=false \
#-Dcom.sun.management.jmxremote.authenticate=false \
#-Dcom.sun.management.jmxremote.ssl=false"