Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 929 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 929 Bytes

docker-payara-timer

Docker based Timer Service test case for Payara/MariaDB/Hazelcast cluster setup

Pre-requisites:

  • JDK 1.8
  • Maven
  • Docker

Usage

  • Build test artifact
mvn clean install
  • Build docker image using script provided
./build.sh
  • Start docker container using provided script
./start.sh
  • Use default admin username: admin and password: admin when prompted
  • Deploy/undeploy test artifact with:
bin/asadmin deploy --target test-cluster --name test.payara.timer deployments/test.payara.timer.ear-1.0.0-SNAPSHOT.ear
bin/asadmin undeploy --target test-cluster test.payara.timer
  • Test application implements a stub schedule which runs every minute and writes to instance log

Note:

  • tail instance log files with: tail -f /opt/payara41/glassfish/nodes/node1/inst?/logs/server.log
  • MariaDB is accessible on standard port (3306) as DBA: root/password