From be0fc7e49f3cd36260a7e092cb88e9796108cbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Sat, 19 Oct 2019 08:49:11 +0200 Subject: [PATCH] [jaxrs-spec][quarkus] update to 0.25.0 (#4185) --- .../spec/libraries/quarkus/Dockerfile.jvm.mustache | 8 ++++++++ .../JavaJaxRS/spec/libraries/quarkus/pom.mustache | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache index ef608ee6a16..08c75ecbaaa 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/Dockerfile.jvm.mustache @@ -20,4 +20,12 @@ ENV AB_ENABLED=jmx_exporter COPY target/lib/* /deployments/lib/ COPY target/*-runner.jar /deployments/app.jar EXPOSE 8080 + +# run with user 1001 and be prepared for be running in OpenShift too +RUN adduser -G root --no-create-home --disabled-password 1001 \ + && chown -R 1001 /deployments \ + && chmod -R "g+rwX" /deployments \ + && chown -R 1001:root /deployments +USER 1001 + ENTRYPOINT [ "/deployments/run-java.sh" ] \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache index d92dff6d7cd..a81ab0fbed0 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/pom.mustache @@ -9,9 +9,11 @@ UTF-8 2.22.0 - 0.23.2 - UTF-8 + true + 0.25.0 + 3.8.1 1.8 + UTF-8 1.8 @@ -78,6 +80,10 @@ + + maven-compiler-plugin + ${compiler-plugin.version} + maven-surefire-plugin ${surefire-plugin.version}