Java EE 7 Simple Application using docker-maven-plugin
Java
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with javaee-samples:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main
.gitignore
pom.xml
readme.adoc

readme.adoc

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 docker-maven-plugin.

  1. Create and configure a Docker Machine as explained at http://blog.arungupta.me/docker-machine-seutp-docker-host-techtip78/.

  2. mvn package -Pdocker to create the Docker image

  3. mvn install -Pdocker to run the Docker container

  4. Access the application curl http://<HOST>:8080/javaee7-docker-maven/resources/persons

    1. HOST> can be found as docker-machine ip <DOCKER MACHINE>