Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arun-gupta/docker-java-sample

A simple Java sample that shows how to package Java application using Docker
https://github.com/arun-gupta/docker-java-sample

docker gradle java maven

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

= Docker Java Sample

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

== Maven

=== Classical

. Build app: `mvn package`
. Run app: `mvn exec:java`

=== With Docker

. Build image: `mvn package -Pdocker`
. Run container: `mvn install -Pdocker`

=== With DC/OS

. Run application: `mvn install -Pdcos`

== Gradle

=== Classical

. Build app: `./gradlew build`
. Run app: `./gradlew run`

=== With Docker

. Build image: `./gradlew dockerBuildImage`
. Run container: `./gradlew startContainer`