Skip to content

Commit

Permalink
Update gradle-build-dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yugaa22 authored Jan 24, 2024
1 parent 79d3e6f commit 0888622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/ubi8/gradle-build-dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN ./gradlew --no-daemon clouddriver-web:installDist -x test
# Modify DEFAULT_JVM_OPTS in clouddriver/bin/clouddriver
ENV EXTRA_OPTS="-Djava.security.egd=file:/dev/./urandom -Dspring.config.import=optional:/opt/spinnaker/config/ --add-opens=java.base/sun.net=ALL-UNNAMED --add-exports=java.base/sun.net=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-exports=java.base/sun.security.rsa=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED"

RUN sed -i "s/^\(DEFAULT_JVM_OPTS\)\s*=\s*'.*'\$/\1='$EXTRA_OPTS'/" /opt/clouddriver/bin/clouddriver
RUN sed -i "s#^\(DEFAULT_JVM_OPTS\)\s*=\s*'.*'\$#\1='-Djava.security.egd=file:/dev/./urandom -Dspring.config.import=optional:/opt/spinnaker/config/ --add-opens=java.base/sun.net=ALL-UNNAMED --add-exports=java.base/sun.net=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-exports=java.base/sun.security.rsa=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED'#" /opt/clouddriver/bin/clouddriver


FROM registry.access.redhat.com/ubi8/ubi:8.8 as java-builder
Expand Down

0 comments on commit 0888622

Please sign in to comment.