A simple Java sample that shows how to package Java application using Docker
Java
Switch branches/tags
Nothing to show
Clone or download

readme.adoc

Docker Java Sample

This repository contain samples that shows integration of Docker and Java.

Maven

Classical

  1. Build app: mvn package

  2. Run app: mvn exec:java

With Docker

  1. Build image: mvn package -Pdocker

  2. Run container: mvn install -Pdocker

With DC/OS

  1. Run application: mvn install -Pdcos

Gradle

Classical

  1. Build app: ./gradlew build

  2. Run app: ./gradlew run

With Docker

  1. Build image: ./gradlew dockerBuildImage

  2. Run container: ./gradlew startContainer