No description
Find a file
2025-12-30 08:31:31 +00:00
.github/workflows Update .github/workflows/pipeline.yml 2025-12-30 08:31:31 +00:00
.gitignore Simplify 2025-04-27 12:01:42 +02:00
jreleaser.yml Simplify 2025-04-27 12:01:42 +02:00
pom.xml Update dependency org.jreleaser:jreleaser-maven-plugin to v1.20.0 2025-08-31 17:05:41 +00:00
README.md Update README.md 2025-06-26 20:37:32 +02:00
renovate.json Add renovate.json 2025-06-26 18:41:27 +00:00

payara-production-domain-builder

Build payara production docmain template from source that can be used to create domains

Dockerfile sample to create a domain with default user name admin & password admin

FROM docker.io/payara/server-full:6.2025.4-jdk21
ADD --chown=payara:payara https://github.com/pretsadev/payara-production-domain-builder/releases/download/v6.2025.4/production-domain.jar /opt/payara/production-domain.jar
ENV DOMAIN_NAME=my-domain
RUN ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} create-domain --template /opt/payara/production-domain.jar ${DOMAIN_NAME} && \
    ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME} && \
    ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin && \
    ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} stop-domain ${DOMAIN_NAME}