| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This sample application shows how to package a Java EE 7 application as Docker image and run it within a container using 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>
| Back | FazBrowse Home | New Git URL |