Skip to content

Commit

Permalink
try to escape space for the add-opens
Browse files Browse the repository at this point in the history
  • Loading branch information
gsergiu committed Jan 10, 2024
1 parent 10406df commit 0bbdaeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ADD https://repo1.maven.org/maven2/co/elastic/apm/elastic-apm-agent/$ELASTIC_APM

COPY ./annotation-web/target/annotation-web-executable.jar /opt/app/annotation-web-executable.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/opt/app/annotation-web-executable.jar"]
ENTRYPOINT ["java", "--add-opens=java.base/java.util=ALL-UNNAMED", "--add-opens=java.base/java.lang=ALL-UNNAMED", "-jar", "/opt/app/annotation-web-executable.jar"]
4 changes: 1 addition & 3 deletions k8s/overlays/cloud/deployment_patch.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ spec:
-Delastic.apm.application_packages=${ELASTIC_APP_PACKAGES}
-Delastic.apm.server_urls=${ELASTIC_APM_SERVERS}
-Delastic.apm.service_name=${APP_NAME}
-Delastic.apm.environment=${K8S_NAMESPACE}
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED"
-Delastic.apm.environment=${K8S_NAMESPACE}"
resources:
requests:
memory: "${MEMORY_REQUEST}M"
Expand Down

0 comments on commit 0bbdaeb

Please sign in to comment.