From aba287504fa956dedd65fc1f7625a1a51098d3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geir=20Andr=C3=A9=20Lund?= Date: Thu, 17 Oct 2024 13:24:18 +0200 Subject: [PATCH] =?UTF-8?q?Opentelemetry=20agent=20feil,=20m=C3=A5=20tilga?= =?UTF-8?q?ng.=20ref=20'unaccessible:=20module=20java.base=20does=20not=20?= =?UTF-8?q?"opens=20java.lang"=20to=20unnamed=20module'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mediator/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mediator/Dockerfile b/mediator/Dockerfile index 348fcb856..93b1ebe4e 100644 --- a/mediator/Dockerfile +++ b/mediator/Dockerfile @@ -2,6 +2,8 @@ FROM cgr.dev/chainguard/jre:latest ENV LANG='nb_NO.UTF-8' LANGUAGE='nb_NO:nb' LC_ALL='nb:NO.UTF-8' TZ="Europe/Oslo" +ENV JAVA_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED" + COPY build/libs/mediator-all.jar /app.jar ENTRYPOINT ["java", "-jar", "/app.jar"] \ No newline at end of file