From 33eda4cadc0aa9d80b85adcfcf9d6cbd2cf103ee Mon Sep 17 00:00:00 2001 From: Scott Kurz Date: Thu, 20 Feb 2020 06:07:30 -0500 Subject: [PATCH] Remove liberty:create from stack image to avoid hardening pwd (#672) Signed-off-by: Scott Kurz --- incubator/java-openliberty/image/Dockerfile-stack | 2 +- incubator/java-openliberty/stack.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/incubator/java-openliberty/image/Dockerfile-stack b/incubator/java-openliberty/image/Dockerfile-stack index 6458e7c26..8dda414a8 100644 --- a/incubator/java-openliberty/image/Dockerfile-stack +++ b/incubator/java-openliberty/image/Dockerfile-stack @@ -17,7 +17,7 @@ WORKDIR /project/ RUN mkdir -p /mvn/repository RUN mvn -B -Dmaven.repo.local=/mvn/repository -N io.takari:maven:wrapper -Dmaven=$(mvn help:evaluate -Dexpression=maven.version -q -DforceStdout) -RUN mvn -B -Pstack-image-package -Dmaven.repo.local=/mvn/repository liberty:install-server liberty:create install dependency:go-offline +RUN mvn -B -Pstack-image-package -Dmaven.repo.local=/mvn/repository liberty:install-server install dependency:go-offline RUN chmod -R 777 /opt/ol diff --git a/incubator/java-openliberty/stack.yaml b/incubator/java-openliberty/stack.yaml index 7e12ab345..7a60c05d2 100644 --- a/incubator/java-openliberty/stack.yaml +++ b/incubator/java-openliberty/stack.yaml @@ -1,5 +1,5 @@ name: Open Liberty -version: 0.2.0 +version: 0.2.1 description: Open Liberty & OpenJ9 using Maven license: Apache-2.0 language: java