Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arun-gupta/docker-java-sample
- Owner: arun-gupta
- License: apache-2.0
- Created: 2016-03-09T21:49:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T00:09:18.000Z (about 1 year ago)
- Last Synced: 2023-12-18T01:26:16.406Z (about 1 year ago)
- Topics: docker, gradle, java, maven
- Language: Java
- Size: 75.2 KB
- Stars: 97
- Watchers: 8
- Forks: 157
- Open Issues: 3
-
Metadata Files:
- Readme: readme.adoc
- License: LICENSE
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`