From f5d176b7ccf83d860c0bff4cebc1ced4d73a6916 Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Tue, 18 Dec 2018 16:38:37 +0100 Subject: [PATCH 1/2] Switch from centos to fedora-minimal It drastically reduces the image size. This is related to https://github.com/jbossas/protean-quickstarts/pull/9. --- docker/strict-example/Dockerfile | 2 +- docs/src/main/asciidoc/building-native-image-guide.adoc | 2 +- maven/src/main/templates/templates/dockerfile.ftl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/strict-example/Dockerfile b/docker/strict-example/Dockerfile index e6b06be179da1..714d2338872a0 100644 --- a/docker/strict-example/Dockerfile +++ b/docker/strict-example/Dockerfile @@ -1,4 +1,4 @@ -FROM centos:latest +FROM registry.fedoraproject.org/fedora-minimal WORKDIR /work COPY target/shamrock-strict-example-1.0.0.Alpha1-SNAPSHOT-runner /work/shamrock-strict-example-runner RUN chmod 777 /work diff --git a/docs/src/main/asciidoc/building-native-image-guide.adoc b/docs/src/main/asciidoc/building-native-image-guide.adoc index a5b33bb85c624..74a22e20a2222 100644 --- a/docs/src/main/asciidoc/building-native-image-guide.adoc +++ b/docs/src/main/asciidoc/building-native-image-guide.adoc @@ -193,7 +193,7 @@ Create the following `Dockerfile` in the `src/main/docker` (or wherever you want [source] ---- -FROM centos:7 +FROM registry.fedoraproject.org/fedora-minimal WORKDIR /work/ COPY target/*-runner /work/application RUN chmod 775 /work diff --git a/maven/src/main/templates/templates/dockerfile.ftl b/maven/src/main/templates/templates/dockerfile.ftl index 013d2ae90e876..1f9075ecd2254 100644 --- a/maven/src/main/templates/templates/dockerfile.ftl +++ b/maven/src/main/templates/templates/dockerfile.ftl @@ -12,7 +12,7 @@ # docker run -i --rm -p 8080:8080 shamrock/${mProjectArtifactId} # ### -FROM centos:7 +FROM registry.fedoraproject.org/fedora-minimal WORKDIR /work/ COPY target/*-runner /work/application RUN chmod 775 /work From 9bf898e0ff8afbcd1fb04fd680383f235b7267cf Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Tue, 18 Dec 2018 16:39:16 +0100 Subject: [PATCH 2/2] Add a section about debugging in the IDE guide This fixes #337 --- docs/src/main/asciidoc/ide-configuration.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/main/asciidoc/ide-configuration.adoc b/docs/src/main/asciidoc/ide-configuration.adoc index 99056f84c1ffe..3d2d22b571137 100644 --- a/docs/src/main/asciidoc/ide-configuration.adoc +++ b/docs/src/main/asciidoc/ide-configuration.adoc @@ -87,6 +87,15 @@ mvn compile shamrock:dev You can then update the application sources, resources and configurations. The changes are automatically reflected in your running application. +== Debugging + +You can run a Shamrock application in debug mode using: + +[source] +mvn compile shamrock:dev -Ddebug=true + +Then, attach your debugger to `localhost:5005`. + == Import in your IDE Once you have a <>, you can import it in your favorite IDE.