-
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.
# Conflicts: # pom.xml
- Loading branch information
Showing
118 changed files
with
5,225 additions
and
5,213 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 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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# builds the image after maven build from local sources | ||
# todo: test (perhaps get the data from PC2 and the fat JAR/WAR from M2 repo instead of using local build) | ||
FROM openjdk:17 | ||
ARG WRK=target/work | ||
VOLUME /work | ||
WORKDIR /work | ||
COPY target/cpath2.war . | ||
# copy the data except listed in .dockerignore | ||
COPY $WRK . | ||
FROM eclipse-temurin:latest | ||
ARG APP_JAR | ||
# persistent volume containing the app data (biopax model ad index files; | ||
# can use target/work demo/test data) | ||
COPY ${APP_JAR} cpath2.war | ||
#home/work dir (properties, data) to mount as docker volume/bind (with e.g. terraform or docker-compose) | ||
ENV CPATH2_HOME /work | ||
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dfile.encoding=UTF-8", "-Xmx64g",\ | ||
"-Dspring.profiles.active=docker", "-jar", "cpath2.war", "--server", \ | ||
"--add-opens=java.base/java.lang=ALL-UNNAMED", \ | ||
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED"] | ||
ENV JDK_JAVA_OPTIONS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED" | ||
#start the app in the workdir to use the "production" application.properties (if present) | ||
WORKDIR ${CPATH2_HOME} | ||
ENTRYPOINT ["java", "-server", "-Djava.security.egd=file:/dev/./urandom", \ | ||
"-Dfile.encoding=UTF-8", "-Xss32m", "-Xmx64g", \ | ||
"-Dspring.profiles.active=docker", \ | ||
"-Dpaxtools.model.safeset=list", \ | ||
"-Dpaxtools.normalizer.use-latest-registry=true", \ | ||
"-jar", "/cpath2.war", "--server"] | ||
EXPOSE 8080 |
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
Oops, something went wrong.