Last active
March 15, 2025 05:06
-
-
Save lprimak/4c0ef39647c6def0b4b0aa676eb7f493 to your computer and use it in GitHub Desktop.
How-to-run Payara things
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up Database (Optional) | |
asadmin create-system-properties hope-db-pool=java:app/jdbc/Hope | |
asadmin create-system-properties hope-db-url=jdbc\\:postgresql\\://db.hope.nyc.ny.us\\:16851/hope | |
asadmin create-system-properties hope-db-username=lprimak | |
# Set up Class Loading | |
asadmin create-system-properties fish.payara.classloading.delegate=false | |
# Run in Docker | |
docker run -it --rm --cpus 1 -p 8080:8080 -p 9009:9009 -p 4848:4848 -p 9010:9010 -p 8686:8686 \ | |
--name payara lprimak/payara-full | |
docker cp -a ~/.postgresql payara:/home/flowlogix/.postgresql # (Optional) | |
# run Payara instance w/no connection to DAS | |
asadmin start-local-instance --nodedir $PAYARA_DOMAINDIR/payara/nodes —sync none inst1 | |
# Build Payara w/Alpha Hazelcast | |
mvn -PskipTests,QuickBuild,deploy-internals -T6 -Dhazelcast.version=4.2-PALPHA-2 clean install | |
# What to put into glassfish/config/asenv.conf | |
export JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true --add-opens=java.base/java.io=ALL-UNNAMED" | |
AS_DEF_DOMAINS_PATH="${HOME}/var/payara-domains" | |
AS_DEF_NODES_PATH="${HOME}/var/payara-nodes" | |
# run Payara QuickLook tests | |
# assume domain in <payara_stage> not outside | |
# domain is started | |
# asadmin start-database is ran | |
mvn -f appserver/tests/quicklook/pom.xml -Dglassfish.home=$PAYARA_STAGE -Ddomain.name=quicklook test -Pall | |
# run individual test | |
ant -Dglassfish.home=$PAYARA_STAGE -Ddomain.name=quicklook all | |
# run quicklook cluster tests | |
ant -Dglassfish.home=$PAYARA_STAGE -Ddomain.name=quicklook cluster | |
# Payara Samples | |
mvn -Ppayara-server-remote,deploy-internals -Dhazelcast.version=4.2-PALPHA-2 -Dpayara.home=$PAYARA_STAGE/.. | |
# Deploy Arquillian Containers (OMIT ::default:: in maven deploy 3.0.0-M1 plugin) | |
mvn deploy -PskipTests,-payara-community -DskipStaging \ | |
-DaltDeploymentRepository=payara-nexus-artifacts::default::https://nexus.payara.fish/repository/payara-artifacts | |
# GAV | |
pmicro --deployfromgav com.flowlogix,jee-examples,4.0.1-SNAPSHOT --additionalrepository file:${HOME}/.m2/repository | |
# Payara Micro Deploy | |
pmicro --deployFromGAV fish.payara.arquillian,payara-micro-deployer,2.3.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment