-
Notifications
You must be signed in to change notification settings - Fork 32
Testing with Docker Images
Sven Loesekann edited this page Jan 6, 2017
·
5 revisions
The local Wildfly is used to for development. To test the Ear on it the development setup of the local Wildfly, the setup would have to be changed and the Ear deployed. Docker offers a different approach. If you install Docker Service you can start Docker Images and run the image in a container. That makes it possible to extend the Maven Build to create a Docker Image with the Ear and start it in Docker.
To create a Docker Image of the carrental application use: mvn clean docker:build.
To start the image use: mvn docker:start.
To stop the image use: mvn docker:stop.
That makes testing the Ear easy and enables testing on other App Servers. In future the Build will be extended to test the Ear on Websphere and Weblogic.