All Projects → javaee-samples → javaee7-docker-maven

javaee-samples / javaee7-docker-maven

Licence: other
Java EE 7 Simple Application using docker-maven-plugin

Programming Languages

java
68154 projects - #9 most used programming language

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>

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].