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
- Host: GitHub
- URL: https://github.com/javaee-samples/javaee7-docker-maven
- Owner: javaee-samples
- Created: 2015-05-20T16:31:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T01:37:39.000Z (about 8 years ago)
- Last Synced: 2025-03-24T19:21:49.247Z (9 months ago)
- Language: Java
- Size: 6.84 KB
- Stars: 44
- Watchers: 7
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: readme.adoc
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 `