From 5ee19af5b79d6f5a4afabaf5af1dc94bccc8558f Mon Sep 17 00:00:00 2001 From: cmjeon <16014245+cmjeon@users.noreply.github.com> Date: Sun, 5 Nov 2023 10:42:15 +0900 Subject: [PATCH 1/3] Update README.adoc escape * character when docker build --- README.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index f6d7896..f664202 100644 --- a/README.adoc +++ b/README.adoc @@ -35,7 +35,7 @@ You could pass in the `JAR_FILE` as part of the `docker` command (it differs for ==== [source,bash] ---- -docker build --build-arg JAR_FILE=target/*.jar -t myorg/myapp . +docker build --build-arg JAR_FILE=target/\*.jar -t myorg/myapp . ---- ==== @@ -44,7 +44,7 @@ For Gradle, the following command works: ==== [source,bash] ---- -docker build --build-arg JAR_FILE=build/libs/*.jar -t myorg/myapp . +docker build --build-arg JAR_FILE=build/libs/\*.jar -t myorg/myapp . ---- ==== From 564517718e8347fdaf4659ffb899aa2610830c88 Mon Sep 17 00:00:00 2001 From: cmjeon <16014245+cmjeon@users.noreply.github.com> Date: Sun, 5 Nov 2023 10:44:49 +0900 Subject: [PATCH 2/3] Update README.adoc Fix Dockerfile script that uses run.sh --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index f664202..cdbd61b 100644 --- a/README.adoc +++ b/README.adoc @@ -146,7 +146,7 @@ FROM eclipse-temurin:17-jdk-alpine VOLUME /tmp COPY run.sh . COPY target/*.jar app.jar -ENTRYPOINT ["run.sh"] +ENTRYPOINT ["./run.sh"] ---- ==== From 4cffbbf1c91396fa653e96f08c4c843a945e6cc8 Mon Sep 17 00:00:00 2001 From: cmjeon <16014245+cmjeon@users.noreply.github.com> Date: Sun, 5 Nov 2023 11:57:45 +0900 Subject: [PATCH 3/3] Update README.adoc ${JAVA_OPTS} is unnecessary part --- README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index cdbd61b..d2c0f6e 100644 --- a/README.adoc +++ b/README.adoc @@ -266,7 +266,7 @@ FROM eclipse-temurin:17-jdk-alpine VOLUME /tmp ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar ${0} ${@}"] +ENTRYPOINT ["sh", "-c", "java -jar /app.jar ${0} ${@}"] ---- ====