javaee7-docker-maven icon indicating copy to clipboard operation
javaee7-docker-maven copied to clipboard

Java EE 7 Simple Application using docker-maven-plugin

Run Java EE 7 Application as Docker Container using Maven

This sample application shows how to package a Java EE 7 application as Docker image and run it within a container using https://github.com/rhuss/docker-maven-plugin[docker-maven-plugin].

. Create and configure a Docker Machine as explained at http://blog.arungupta.me/docker-machine-seutp-docker-host-techtip78/. . mvn package -Pdocker to create the Docker image . mvn install -Pdocker to run the Docker container . Access the application curl http://<HOST>:8080/javaee7-docker-maven/resources/persons .. HOST> can be found as docker-machine ip <DOCKER MACHINE>