An open API service indexing awesome lists of open source software.

https://github.com/javaee-samples/javaee7-docker-maven

Java EE 7 Simple Application using docker-maven-plugin
https://github.com/javaee-samples/javaee7-docker-maven

Last synced: 9 months ago
JSON representation

Java EE 7 Simple Application using docker-maven-plugin

Awesome Lists containing this project

README

          

# 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://:8080/javaee7-docker-maven/resources/persons`
.. `HOST>` can be found as `docker-machine ip `