From 4204ce51ae695699e40237e6f2d773454eb205c3 Mon Sep 17 00:00:00 2001 From: Bryan Atsatt Date: Wed, 21 Oct 2020 12:07:12 -0700 Subject: [PATCH] Fix uses of jlink-image directories to use new "-jri" suffix. (#2469) * Fix uses of jlink-image directories to use new "-jri" suffix. --- .../src/main/resources/README.md.mustache | 18 +++++++++--------- .../src/main/resources/README.md.mustache | 18 +++++++++--------- docs/common/guides/jlink_image.adoc | 8 ++++---- .../helidon-quickstart-mp/Dockerfile.jlink | 2 +- .../helidon-quickstart-mp/README.md | 10 +++++----- .../helidon-quickstart-se/Dockerfile.jlink | 2 +- .../helidon-quickstart-se/README.md | 10 +++++----- .../Dockerfile.jlink | 2 +- .../helidon-standalone-quickstart-mp/README.md | 10 +++++----- .../Dockerfile.jlink | 2 +- .../helidon-standalone-quickstart-se/README.md | 10 +++++----- 11 files changed, 46 insertions(+), 46 deletions(-) diff --git a/archetypes/quickstart-mp/src/main/resources/README.md.mustache b/archetypes/quickstart-mp/src/main/resources/README.md.mustache index 4ea9328ac..1564c5751 100644 --- a/archetypes/quickstart-mp/src/main/resources/README.md.mustache +++ b/archetypes/quickstart-mp/src/main/resources/README.md.mustache @@ -128,12 +128,12 @@ docker run --rm -p 8080:8080 {{artifactId}}-native:latest ## Build a Java Runtime Image using jlink -You can build a custom Java Runtime Image (JRI) containing the application jars and the JDK modules +You can build a custom Java Runtime Image (JRI) containing the application jars and the JDK modules on which they depend. This image also: -* Enables Class Data Sharing by default to reduce startup time. -* Contains a customized `start` script to simplify CDS usage and support debug and test modes. - +* Enables Class Data Sharing by default to reduce startup time. +* Contains a customized `start` script to simplify CDS usage and support debug and test modes. + You can build a custom JRI in two different ways: * Local * Using Docker @@ -152,25 +152,25 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/{{artifactId}}/bin/start +./target/{{artifactId}}-jri/bin/start ``` ### Multi-stage Docker build -Build the "jlink" Docker Image +Build the JRI as a Docker Image ``` -docker build -t {{artifactId}}-jlink -f Dockerfile.jlink . +docker build -t {{artifactId}}-jri -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 {{artifactId}}-jlink:latest +docker run --rm -p 8080:8080 {{artifactId}}-jri:latest ``` See the start script help: ``` -docker run --rm {{artifactId}}-jlink:latest --help +docker run --rm {{artifactId}}-jri:latest --help ``` diff --git a/archetypes/quickstart-se/src/main/resources/README.md.mustache b/archetypes/quickstart-se/src/main/resources/README.md.mustache index d361e37c6..83ccd7a02 100644 --- a/archetypes/quickstart-se/src/main/resources/README.md.mustache +++ b/archetypes/quickstart-se/src/main/resources/README.md.mustache @@ -127,12 +127,12 @@ docker run --rm -p 8080:8080 {{artifactId}}-native:latest ## Build a Java Runtime Image using jlink -You can build a custom Java Runtime Image (JRI) containing the application jars and the JDK modules +You can build a custom Java Runtime Image (JRI) containing the application jars and the JDK modules on which they depend. This image also: -* Enables Class Data Sharing by default to reduce startup time. -* Contains a customized `start` script to simplify CDS usage and support debug and test modes. - +* Enables Class Data Sharing by default to reduce startup time. +* Contains a customized `start` script to simplify CDS usage and support debug and test modes. + You can build a custom JRI in two different ways: * Local * Using Docker @@ -151,25 +151,25 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/{{artifactId}}/bin/start +./target/{{artifactId}}-jri/bin/start ``` ### Multi-stage Docker build -Build the "jlink" Docker Image +Build the JRI as a Docker Image ``` -docker build -t {{artifactId}}-jlink -f Dockerfile.jlink . +docker build -t {{artifactId}}-jri -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 {{artifactId}}-jlink:latest +docker run --rm -p 8080:8080 {{artifactId}}-jri:latest ``` See the start script help: ``` -docker run --rm {{artifactId}}-jlink:latest --help +docker run --rm {{artifactId}}-jri:latest --help ``` diff --git a/docs/common/guides/jlink_image.adoc b/docs/common/guides/jlink_image.adoc index 7119f4d41..17b8ad745 100644 --- a/docs/common/guides/jlink_image.adoc +++ b/docs/common/guides/jlink_image.adoc @@ -107,7 +107,7 @@ This uses the `helidon-maven-plugin` to perform the custom image generation. After the build completes it will report some statistics about the build including the reduction in image size. -The `target/helidon-quickstart-{helidon-lc-flavor}` directory is a self contained +The `target/helidon-quickstart-{helidon-lc-flavor}-jri` directory is a self contained custom image of your application. It contains your application, its runtime dependencies and the JDK modules it depends on. You can start your application using the provide @@ -115,7 +115,7 @@ using the provide [source,bash,subs="attributes+"] ---- -./target/helidon-quickstart-{helidon-lc-flavor}/bin/start +./target/helidon-quickstart-{helidon-lc-flavor}-jri/bin/start ---- === Class Data Sharing (CDS) Archive @@ -147,7 +147,7 @@ Dockerfile included with the quickstart. [source,bash,subs="attributes+"] ---- -docker build -t helidon-quickstart-{helidon-lc-flavor}-jlink -f Dockerfile.jlink . +docker build -t helidon-quickstart-{helidon-lc-flavor}-jri -f Dockerfile.jlink . ---- [TIP] @@ -162,7 +162,7 @@ Start the application: [source,bash,subs="attributes+"] ---- -docker run --rm -p 8080:8080 helidon-quickstart-{helidon-lc-flavor}-jlink:latest +docker run --rm -p 8080:8080 helidon-quickstart-{helidon-lc-flavor}-jri:latest ---- You can exercise the application's endpoints as before. diff --git a/examples/quickstarts/helidon-quickstart-mp/Dockerfile.jlink b/examples/quickstarts/helidon-quickstart-mp/Dockerfile.jlink index beecd5597..2ac67b20a 100644 --- a/examples/quickstarts/helidon-quickstart-mp/Dockerfile.jlink +++ b/examples/quickstarts/helidon-quickstart-mp/Dockerfile.jlink @@ -35,6 +35,6 @@ RUN echo "done!" FROM debian:stretch-slim WORKDIR /helidon -COPY --from=build /helidon/target/helidon-quickstart-mp ./ +COPY --from=build /helidon/target/helidon-quickstart-mp-jri ./ ENTRYPOINT ["/bin/bash", "/helidon/bin/start"] EXPOSE 8080 diff --git a/examples/quickstarts/helidon-quickstart-mp/README.md b/examples/quickstarts/helidon-quickstart-mp/README.md index fd341ca9d..e17d0b925 100644 --- a/examples/quickstarts/helidon-quickstart-mp/README.md +++ b/examples/quickstarts/helidon-quickstart-mp/README.md @@ -142,25 +142,25 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/helidon-quickstart-mp/bin/start +./target/helidon-quickstart-mp-jri/bin/start ``` ### Multi-stage Docker build -Build the "jlink" Docker Image +Build the JRI as a Docker Image ``` -docker build -t helidon-quickstart-mp-jlink -f Dockerfile.jlink . +docker build -t helidon-quickstart-mp-jri -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 helidon-quickstart-mp-jlink:latest +docker run --rm -p 8080:8080 helidon-quickstart-mp-jri:latest ``` See the start script help: ``` -docker run --rm helidon-quickstart-mp-jlink:latest --help +docker run --rm helidon-quickstart-mp-jri:latest --help ``` diff --git a/examples/quickstarts/helidon-quickstart-se/Dockerfile.jlink b/examples/quickstarts/helidon-quickstart-se/Dockerfile.jlink index 2aaa276c5..004d53927 100644 --- a/examples/quickstarts/helidon-quickstart-se/Dockerfile.jlink +++ b/examples/quickstarts/helidon-quickstart-se/Dockerfile.jlink @@ -35,6 +35,6 @@ RUN echo "done!" FROM debian:stretch-slim WORKDIR /helidon -COPY --from=build /helidon/target/helidon-quickstart-se ./ +COPY --from=build /helidon/target/helidon-quickstart-se-jri ./ ENTRYPOINT ["/bin/bash", "/helidon/bin/start"] EXPOSE 8080 diff --git a/examples/quickstarts/helidon-quickstart-se/README.md b/examples/quickstarts/helidon-quickstart-se/README.md index dbdcc5447..2c3b325a0 100644 --- a/examples/quickstarts/helidon-quickstart-se/README.md +++ b/examples/quickstarts/helidon-quickstart-se/README.md @@ -141,25 +141,25 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/helidon-quickstart-se/bin/start +./target/helidon-quickstart-se-jri/bin/start ``` ### Multi-stage Docker build -Build the "jlink" Docker Image +Build the JRI as a Docker Image ``` -docker build -t helidon-quickstart-se-jlink -f Dockerfile.jlink . +docker build -t helidon-quickstart-se-jri -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 helidon-quickstart-se-jlink:latest +docker run --rm -p 8080:8080 helidon-quickstart-se-jri:latest ``` See the start script help: ``` -docker run --rm helidon-quickstart-se-jlink:latest --help +docker run --rm helidon-quickstart-se-jri:latest --help ``` diff --git a/examples/quickstarts/helidon-standalone-quickstart-mp/Dockerfile.jlink b/examples/quickstarts/helidon-standalone-quickstart-mp/Dockerfile.jlink index beecd5597..2ac67b20a 100644 --- a/examples/quickstarts/helidon-standalone-quickstart-mp/Dockerfile.jlink +++ b/examples/quickstarts/helidon-standalone-quickstart-mp/Dockerfile.jlink @@ -35,6 +35,6 @@ RUN echo "done!" FROM debian:stretch-slim WORKDIR /helidon -COPY --from=build /helidon/target/helidon-quickstart-mp ./ +COPY --from=build /helidon/target/helidon-quickstart-mp-jri ./ ENTRYPOINT ["/bin/bash", "/helidon/bin/start"] EXPOSE 8080 diff --git a/examples/quickstarts/helidon-standalone-quickstart-mp/README.md b/examples/quickstarts/helidon-standalone-quickstart-mp/README.md index 81bb30a24..c071cefde 100644 --- a/examples/quickstarts/helidon-standalone-quickstart-mp/README.md +++ b/examples/quickstarts/helidon-standalone-quickstart-mp/README.md @@ -142,25 +142,25 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/helidon-quickstart-se/bin/start +./target/helidon-quickstart-se-jri/bin/start ``` ### Multi-stage Docker build -Build the "jlink" Docker Image +Build the JRI as a Docker Image ``` -docker build -t helidon-quickstart-mp-jlink -f Dockerfile.jlink . +docker build -t helidon-quickstart-mp-jri -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 helidon-quickstart-mp-jlink:latest +docker run --rm -p 8080:8080 helidon-quickstart-mp-jri:latest ``` See the start script help: ``` -docker run --rm helidon-quickstart-mp-jlink:latest --help +docker run --rm helidon-quickstart-mp-jri:latest --help ``` diff --git a/examples/quickstarts/helidon-standalone-quickstart-se/Dockerfile.jlink b/examples/quickstarts/helidon-standalone-quickstart-se/Dockerfile.jlink index 2aaa276c5..004d53927 100644 --- a/examples/quickstarts/helidon-standalone-quickstart-se/Dockerfile.jlink +++ b/examples/quickstarts/helidon-standalone-quickstart-se/Dockerfile.jlink @@ -35,6 +35,6 @@ RUN echo "done!" FROM debian:stretch-slim WORKDIR /helidon -COPY --from=build /helidon/target/helidon-quickstart-se ./ +COPY --from=build /helidon/target/helidon-quickstart-se-jri ./ ENTRYPOINT ["/bin/bash", "/helidon/bin/start"] EXPOSE 8080 diff --git a/examples/quickstarts/helidon-standalone-quickstart-se/README.md b/examples/quickstarts/helidon-standalone-quickstart-se/README.md index 143bea3a5..bfc47d402 100644 --- a/examples/quickstarts/helidon-standalone-quickstart-se/README.md +++ b/examples/quickstarts/helidon-standalone-quickstart-se/README.md @@ -142,25 +142,25 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/helidon-quickstart-se/bin/start +./target/helidon-quickstart-se-jri/bin/start ``` ### Multi-stage Docker build -Build the "jlink" Docker Image +Build the JRI as a Docker Image ``` -docker build -t helidon-quickstart-se-jlink -f Dockerfile.jlink . +docker build -t helidon-quickstart-se-jri -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 helidon-quickstart-se-jlink:latest +docker run --rm -p 8080:8080 helidon-quickstart-se-jri:latest ``` See the start script help: ``` -docker run --rm helidon-quickstart-se-jlink:latest --help +docker run --rm helidon-quickstart-se-jri:latest --help ```