Skip to content

Commit

Permalink
chg: Run container image with a supported JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
indigo423 committed May 13, 2024
1 parent b275df3 commit 9d69eb4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ ENV JAVA_OPTS ""

ADD deploy/opennms-pris-release-archive.tar.gz /opt

RUN apt-get update && \
apt-get -y --no-install-recommends install curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
ln -s /usr/local/openjdk-11/bin/java /usr/bin/java

## Volumes for storing data outside of the container
VOLUME [ "${OPENNMS_PRIS_HOME}/requisitions", "${OPENNMS_PRIS_HOME}/scriptsteps" ]

Expand Down Expand Up @@ -41,6 +35,8 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}" \
org.opennms.cicd.buildurl="${BUILD_URL}" \
org.opennms.cicd.branch="${BUILD_BRANCH}"

ENTRYPOINT ./opennms-pris.sh
ENTRYPOINT [ "/opt/java/openjdk/bin/java" ]

CMD ["-cp", "/opt/opennms-pris/lib/*:/opt/opennms-pris/opennms-pris.jar", "org.opennms.pris.Starter" ]

EXPOSE 8000

0 comments on commit 9d69eb4

Please sign in to comment.