4 minutes
Understanding the Payara Platform Enterprise Software Lifecycle: How We Support Long-Term Stability
Keeping an application server running smoothly isn’t so much about new features, but more about predictability and consistency. Software […]
Hi Ondrej!! nice article.
I execute all the steps without problems until 5.2 ( Running the main application in Docker).
This is my problem:
The guide says: “docker run -p 8080:8080 -v ‘PATH_TO_THE_GITHUB_REPO/cargo-tracker/
target/autodeploy’:/opt/payara41/deployments reactivems/payara-server
bin/asadmin start-domain -v”
I replaced it command with:
docker run -p 8080:8080 -v ‘/Users/josediaz/Projects/MicroProfile/ReactiveWay-cargotracker/target/autodeploy’:/opt/payara41/deployments reactivems/payara-server bin/asadmin start-domain -v
The commando ‘docker ps -a’ shows:
3f623b6c44a3 reactivems/payara-server “bin/asadmin start-d…” 29 minutes ago Up 29 minutes 4848/tcp, 5900/tcp, 8009/tcp, 8181/tcp, 0.0.0.0:8080->8080/tcp reverent_edison
But the url is not running:
http://localhost:8080/cargo-tracker/
returns error 404.
Can you help me with some tip?
Jose
Hi Jose, I’m glad you like the workshop lecture and that you got so far without any problems. I realized the instructions for running in docker are obsolete and I forgot to fix them.
Instead of using the custom reactivems/payara-server image which isn’t needed anymore, use the standard Payara 5 image with the following:
docker run -p 8080:8080 -v ‘/Users/josediaz/Projects/MicroProfile/ReactiveWay-cargotracker/cargo-tracker/target/autodeploy’:/opt/payara/deployments payara/server-full
And then to execute Payara Micro instances, run the following (you need to supply the internal IP address of the Payara Server container):
docker run -v ‘PATH_TO_THE_GITHUB_REPO/pathfinder/target’:/opt/payara/deployments payara/micro java -jar /opt/payara/payara-micro.jar –deploy /opt/payara/deployments/pathfinder.war –clustermode domain:IP_OF_PAYARA_SERVER_CONTAINER:4900
The first command run successfully.
But the second give it error:
ocker run -v ‘/Users/josediaz/Projects/MicroProfile/ReactiveWay-cargotracker-ext/pathfinder/target’:/opt/payara/deployments payara/micro java -jar /opt/payara/payara-micro.jar –deploy /opt/payara/deployments/pathfinder.war –clustermode domain:172.17.0.2:4900
Jul 30, 2018 3:47:15 AM fish.payara.micro.impl.PayaraMicroImpl scanArgs
SEVERE: Argument(s) provided are invalid: java,-jar. Try –help for valid command options
Ok I found the fix.
docker run -v ‘/Users/josediaz/Projects/MicroProfile/ReactiveWay-cargotracker-ext/pathfinder/target’:/opt/payara/deployments payara/micro –deploy /opt/payara/deployments/pathfinder.war –clustermode domain:172.17.0.2:4900
java -jar /opt/payara/payara-micro.jar is not necessary anymore.
Thanks Ondrej