Skip to content

Commit

Permalink
Another update to Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Mandy Chessell <[email protected]>
  • Loading branch information
mandy-chessell committed Jun 13, 2024
1 parent 0bdef68 commit 06a8308
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,27 @@ LABEL org.opencontainers.image.vendor = "ODPi" \
org.opencontainers.image.ext.docker.debug = "docker exec -it $CONTAINER /bin/sh" \
org.opencontainers.image.ext.docker.params = "JAVA_DEBUG=set to true to enable JVM debugging"

# Copy the files to package into the container
COPY assembly/platform /deployments
# Copy the files to package into the container. The chmod sets up the needed file permissions for the
# libraries and the data directory.
COPY --chmod=777 assembly/platform /deployments

# Expose port 9443 (default) for client access, and allow for 5005 being used for remote java debug
EXPOSE 9443 5005

# By default, we run the OMAG Server Platform
ENV JAVA_APP_JAR=omag-server-platform-${version}.jar

# These environment variables are a workaround for an incompatibility between the macOS encyryption library and XTDB's
# expectionations.
ENV XTDB_DISABLE_LIBCRYPTO=True
ENV XTDB_ENABLE_BYTEUTILS_SHA1=True

# This is used with regular class loader, ie any client code etc
# ENV JAVA_LIBDIR=/deployments/lib

# This is used when running a spring app such as the OMAG Server PLatform (default)
# This is used when running a spring app such as the OMAG Server Platform (default)
# Extend this accordingly via the environment, or within a new Dockerfile as needed
ENV LOADER_PATH=/deployments/lib:/deployments/extra
ENV LOADER_PATH=/deployments/lib,/deployments/extra

# Joloka will be removed shortly. For now disable to avoid errors
# ENV AB_JOLOKIA_OFF=true
Expand Down

0 comments on commit 06a8308

Please sign in to comment.