-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: migration to java 11 runtime for better performance and memory…
… usage
- Loading branch information
1 parent
8e2a90e
commit 153e521
Showing
5 changed files
with
81 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Keep in sync with version in frank-runner.properties. Detailed instructions can be found in CONTRIBUTING.md. | ||
# Check whether java-orig files have changed in F!F and update custom code (java and java-orig files) accordingly | ||
|
||
# Before bumping make sure https://github.com/ibissource/iaf/issues/5356 is resolved or stuurgegevens-refactor PR is merged. | ||
FROM docker.io/wearefrank/frank-framework:7.9-20230905.223421 | ||
|
||
# TempFix TODO: Move this to the credentialprovider.properties | ||
ENV credentialFactory.class=nl.nn.credentialprovider.PropertyFileCredentialFactory | ||
ENV credentialFactory.map.properties=/opt/frank/resources/credentials.properties | ||
ENV zaakbrug.zds.timezone=UTC | ||
|
||
# Copy dependencies | ||
COPY --chown=tomcat lib/server/ /usr/local/tomcat/lib/ | ||
COPY --chown=tomcat lib/webapp/ /usr/local/tomcat/webapps/ROOT/WEB-INF/lib/ | ||
|
||
# When deploying the "context.xml" should be copied to /usr/local/tomcat/conf/Catalina/localhost/ROOT.xml | ||
COPY --chown=tomcat src/main/webapp/META-INF/context.xml /usr/local/tomcat/conf/Catalina/localhost/ROOT.xml | ||
|
||
# Copy Frank! | ||
COPY --chown=tomcat src/main/configurations/ /opt/frank/configurations/ | ||
COPY --chown=tomcat src/main/resources/ /opt/frank/resources/ | ||
COPY --chown=tomcat src/test/testtool/ /opt/frank/testtool/ | ||
|
||
# Compile custom class, this should be changed to a buildstep in the future | ||
COPY --chown=tomcat src/main/java /tmp/java | ||
RUN javac \ | ||
/tmp/java/nl/nn/adapterframework/parameters/Parameter.java \ | ||
-classpath "/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/*:/usr/local/tomcat/lib/*" \ | ||
-verbose -d /usr/local/tomcat/webapps/ROOT/WEB-INF/classes | ||
RUN rm -rf /tmp/java | ||
|
||
# The part after "||" is to make sure the response of the health-endpoint call is included in the logs, for debugging purposes. | ||
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=60 \ | ||
CMD curl --fail --silent http://localhost:8080/iaf/api/server/health || (curl --silent http://localhost:8080/iaf/api/server/health && exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters