Skip to content

A simple Java sample that shows how to package Java application using Docker

License

Notifications You must be signed in to change notification settings

arun-gupta/docker-java-sample

Repository files navigation

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

About

A simple Java sample that shows how to package Java application using Docker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages