diff --git a/conf/docker/app/Dockerfile b/conf/docker/app/Dockerfile index 4522a715dc4..e0e8217c778 100644 --- a/conf/docker/app/Dockerfile +++ b/conf/docker/app/Dockerfile @@ -2,6 +2,11 @@ FROM quay.io/poikilotherm/payara-full:fix-multiple # Disable "phone home" RUN rm ${PAYARA_DIR}/glassfish/modules/phonehome-bootstrap.jar +# Do not validate resources, or JMS resources defined in +# glassfish-resources.xml cannot be created +RUN asadmin start-domain && \ + asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} create-jvm-options -- "-Ddeployment.resource.validation=false" && \ + asadmin stop-domain ARG LIB_PATH="${PAYARA_DIR}/glassfish/domains/${DOMAIN_NAME}/lib/" diff --git a/src/main/webapp/WEB-INF/glassfish-resources.xml b/src/main/webapp/WEB-INF/glassfish-resources.xml index d5286b3c609..41aee7fd3d2 100644 --- a/src/main/webapp/WEB-INF/glassfish-resources.xml +++ b/src/main/webapp/WEB-INF/glassfish-resources.xml @@ -14,4 +14,25 @@ + + + + + + + + + \ No newline at end of file