From cb0b4dd6efa288f61401c11bf06ee054e3d6e5ab Mon Sep 17 00:00:00 2001
From: Rustam_Lotsmanenko <rustam_lotsmanenko@epam.com>
Date: Thu, 12 Oct 2023 11:43:48 +0300
Subject: [PATCH] add run args

---
 provider/notification-gc/cloudbuild/Dockerfile.cloudbuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/provider/notification-gc/cloudbuild/Dockerfile.cloudbuild b/provider/notification-gc/cloudbuild/Dockerfile.cloudbuild
index 796b99b21..8260b9a9e 100644
--- a/provider/notification-gc/cloudbuild/Dockerfile.cloudbuild
+++ b/provider/notification-gc/cloudbuild/Dockerfile.cloudbuild
@@ -12,4 +12,8 @@ RUN groupadd -g 10001 -r nonroot \
 # Run as non-root user
 USER 10001:10001
 # Run the web service on container startup.
-CMD java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -Dlog4j.formatMsgNoLookups=true -jar /app/notification-${PROVIDER_NAME}.jar
+CMD java --add-opens java.base/java.lang=ALL-UNNAMED \
+         --add-opens java.base/java.lang.reflect=ALL-UNNAMED \
+         -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} \
+         -Dlog4j.formatMsgNoLookups=true -jar \
+         /app/notification-${PROVIDER_NAME}.jar
-- 
GitLab