-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
12 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
FROM fabric8/java-centos-openjdk8-jre:1.6.4 | ||
MAINTAINER Eiffel-Community | ||
FROM openjdk:17 | ||
MAINTAINER Eiffel-Community | ||
|
||
# Expose port 8080. The port can be accessed using option -p or -P of | ||
# docker's command 'run'. | ||
EXPOSE 8080 | ||
|
||
ARG URL | ||
|
||
# Explicitly select the file to pass to "java -jar" so that additional | ||
# jar dependencies can be added to ${JAVA_APP_DIR} without creating | ||
# ambiguity. | ||
ENV JAVA_APP_JAR ${JAVA_APP_DIR}/generate.war | ||
ENV JAVA_APP_JAR="${JAVA_APP_DIR}/generate.war" | ||
|
||
# Disable Jolokia and jmx_exporter. | ||
ENV AB_OFF true | ||
|
||
RUN echo Building RemRem-Generate image based on artifact url: ${URL} | ||
ADD --chown=jboss ${URL} ${JAVA_APP_JAR} | ||
RUN echo "Building RemRem-Generate image based on artifact url: ${URL}" | ||
ADD ${URL} ${JAVA_APP_JAR} | ||
|
||
# Start the service | ||
ENTRYPOINT /usr/java/openjdk-17/bin/java -jar "${JAVA_APP_JAR}" |