-
Notifications
You must be signed in to change notification settings - Fork 32
Testing with Docker Images
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 install docker:build"
To create a Docker Image of the carrental application for Websphere use: "mvn clean install 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 Ear will be tested on Weblogic but it does not provide a Version for Docker Images. Everybody who wants to test on Weblogic needs to build their own image: http://www.adam-bien.com/roller/abien/entry/how_to_dockerize_weblogic_for