https://github.com/pretsadev/payara-production-domain-builder
https://github.com/pretsadev/payara-production-domain-builder
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pretsadev/payara-production-domain-builder
- Owner: pretsadev
- Created: 2023-04-05T21:05:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-01T03:52:46.000Z (11 months ago)
- Last Synced: 2025-09-01T05:55:36.018Z (11 months ago)
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`
```Dockerfile
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}
```