From 737fa385e987d9712902c62690536c4b016ccc6d Mon Sep 17 00:00:00 2001 From: Sven Ruppert Date: Fri, 21 Jun 2019 11:48:03 +0200 Subject: [PATCH] added info about generated docker images --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index dcbc05b..57764e5 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,32 @@ $ docker run -it --rm : java -version java version "1.8.... ``` +Based on jabba there are prebuild Docker images for JDK only and JDK/Maven combinations. +The Images are generated by this open source project [https://github.com/svenruppert/docker-image-generator](https://github.com/svenruppert/docker-image-generator) and pushed to docker hub at [https://cloud.docker.com/u/svenruppert/](https://cloud.docker.com/u/svenruppert/) + +To use this you could do the following: +```bash +docker run \ + --rm \ + --name run \ + -v "$(pwd)":/usr/src/mymaven \ + -w /usr/src/mymaven \ + svenruppert/adopt:1.12.0-1 \ + java -jar target/myapp.jar +``` + +or with maven to build and run your app: + +```bash +docker run \ + --rm \ + --name compile \ + -v "$(pwd)":/usr/src/mymaven \ + -w /usr/src/mymaven \ + svenruppert/maven-3.6.1-adopt:1.12.0-1 \ + mvn clean install -Dmaven.test.skip=true +``` + #### Windows 10 > (in powershell)