Skip to content

Commit

Permalink
Merge pull request #129 from /issues/128-openj9
Browse files Browse the repository at this point in the history
Fix #128: Improve Docker container footprint by switching to OpenJ9
  • Loading branch information
romanstrobl authored Jan 6, 2022
2 parents 836a2b8 + 96eb337 commit 30a2e0b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Java options
POWERAUTH_JAVA_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx750m
POWERAUTH_JAVA_OPTS=-Xmx450m

# Memory settings
JAVA_PROCESS_MEMORY_LIMIT=786432000
JAVA_PROCESS_MEMORY_LIMIT=524288000

# Configuration for PostgreSQL database related to PowerAuth Server
POWERAUTH_POSTGRESQL_PATH=/var/lib/powerauth/postgresql-pas
Expand Down
4 changes: 2 additions & 2 deletions docker-powerauth-data-adapter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM tomcat:9-jdk11
FROM tomcat:jdk11-adoptopenjdk-openj9
LABEL maintainer="[email protected]"

# Prepare environment variables
ENV JAVA_HOME /usr/local/openjdk-11
ENV JAVA_HOME /opt/java/openjdk
ENV TOMCAT_HOME /usr/local/tomcat

# Clear root context
Expand Down
4 changes: 2 additions & 2 deletions docker-powerauth-nextstep/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM tomcat:9-jdk11
FROM tomcat:jdk11-adoptopenjdk-openj9
LABEL maintainer="[email protected]"

# Prepare environment variables
ENV JAVA_HOME /usr/local/openjdk-11
ENV JAVA_HOME /opt/java/openjdk
ENV TOMCAT_HOME /usr/local/tomcat

# Clear root context
Expand Down
4 changes: 2 additions & 2 deletions docker-powerauth-push-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM tomcat:9-jdk11
FROM tomcat:jdk11-adoptopenjdk-openj9
LABEL maintainer="[email protected]"

# Prepare environment variables
ENV JAVA_HOME /usr/local/openjdk-11
ENV JAVA_HOME /opt/java/openjdk
ENV TOMCAT_HOME /usr/local/tomcat

# Clear root context
Expand Down
4 changes: 2 additions & 2 deletions docker-powerauth-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM tomcat:9-jdk11
FROM tomcat:jdk11-adoptopenjdk-openj9
LABEL maintainer="[email protected]"

# Prepare environment variables
ENV JAVA_HOME /usr/local/openjdk-11
ENV JAVA_HOME /opt/java/openjdk
ENV TOMCAT_HOME /usr/local/tomcat

# Clear root context
Expand Down
4 changes: 2 additions & 2 deletions docker-powerauth-tpp-engine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM tomcat:9-jdk11
FROM tomcat:jdk11-adoptopenjdk-openj9
LABEL maintainer="[email protected]"

# Prepare environment variables
ENV JAVA_HOME /usr/local/openjdk-11
ENV JAVA_HOME /opt/java/openjdk
ENV TOMCAT_HOME /usr/local/tomcat

# Clear root context
Expand Down
4 changes: 2 additions & 2 deletions docker-powerauth-webflow/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM tomcat:9-jdk11
FROM tomcat:jdk11-adoptopenjdk-openj9
LABEL maintainer="[email protected]"

# Prepare environment variables
ENV JAVA_HOME /usr/local/openjdk-11
ENV JAVA_HOME /opt/java/openjdk
ENV TOMCAT_HOME /usr/local/tomcat
ENV WEBFLOW_RESOURCES /opt/ext-resources

Expand Down

0 comments on commit 30a2e0b

Please sign in to comment.