diff options
-rw-r--r-- | Dockerfile | 9 | ||||
-rw-r--r-- | pom.xml | 4 |
2 files changed, 7 insertions, 6 deletions
@@ -14,16 +14,13 @@ # limitations under the License. # -FROM openjdk:8-jre-alpine +FROM openjdk:11-jre-slim ARG SERVER_PORT ARG PKG_FILENAME=nbi-rest-services-4.0.1-SNAPSHOT.jar ADD target/$PKG_FILENAME app.jar -RUN addgroup -S appgroup -RUN adduser -S appuser -G appgroup -RUN mkdir temptoscafile -RUN chown appuser:appgroup temptoscafile/ +RUN addgroup appgroup && useradd -ms /bin/bash appuser && adduser appuser appgroup && mkdir temptoscafile && chown appuser:appgroup temptoscafile/ COPY src/main/resources/certificate /certs ARG CERT_PASS=changeit @@ -43,4 +40,4 @@ ENV SERVER_PORT=${SERVER_PORT:-8080} ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom" EXPOSE $SERVER_PORT -ENTRYPOINT java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap $JAVA_OPTS -jar /app.jar +ENTRYPOINT java -XX:+UseContainerSupport $JAVA_OPTS -jar /app.jar @@ -387,7 +387,11 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> + <version>2.22.0</version> <configuration> +<!-- <argLine>--> +<!-- --illegal-access=permit--> +<!-- </argLine>--> <includes> <include>org/onap/nbi/test/KarateApiTest.java</include> <include>org/onap/nbi/test/ExecutionTaskTest.java</include> |