Skip to content

javaee-samples/javaee7-docker-maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Java EE 7 Simple Application using docker-maven-plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages