Skip to content

Testing with Docker Images

Sven Loesekann edited this page Jan 15, 2017 · 5 revisions

To Test the Ear Docker can be used

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 for Wildfly use: mvn clean docker:build

To create a Docker Image of the carrental application for Websphere use: mvn clean docker:build -DprodDocker=WS

To start the image use: mvn docker:start (for Websphere add "-DprodDocker=WS")

To stop the image use: mvn docker:stop (for Websphere add "-DprodDocker=WS")

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 Weblogic.

Clone this wiki locally