Skip to content

Commit

Permalink
Update clouddriver-oes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yugaa22 authored Jan 31, 2024
1 parent 5cdeb81 commit 1b86946
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/clouddriver-oes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,24 @@ jobs:
sed -e 's/NEXUS_USERNAME/${{ secrets.NEXUS_USERNAME }}/' -i build.gradle
sed -e 's/NEXUS_PASSWORD/${{ secrets.NEXUS_PASSWORD }}/' -i build.gradle
./gradlew --no-daemon -PenableCrossCompilerPlugin=true clouddriver-web:installDist -x test
./gradlew --no-daemon -PenableCrossCompilerPlugin=true clouddriver-web:installDist -x test

#./gradlew --no-daemon clouddriver-web:installDist -x test

extra_opts='"--add-opens=java.base/sun.net=ALL-UNNAMED" "--add-exports=java.base/sun.net=ALL-UNNAMED" "--add-opens=java.base/java.time=ALL-UNNAMED"'
#extra_opts='"--add-opens=java.base/sun.net=ALL-UNNAMED" "--add-exports=java.base/sun.net=ALL-UNNAMED" "--add-opens=java.base/java.time=ALL-UNNAMED"'


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"'

extra_opts_escaped=$(sed 's/[\/&]/\\&/g' <<< "$extra_opts")

#echo $extra_opts_escaped
echo $extra_opts_escaped

sed "s/^\(DEFAULT_JVM_OPTS=\'.*\)\'$/\1 $extra_opts_escaped\'/" -i clouddriver-web/build/install/clouddriver/bin/clouddriver
#sed "s/^\(DEFAULT_JVM_OPTS=\'.*\)\'$/\1 $extra_opts_escaped\'/" -i clouddriver-web/build/install/clouddriver/bin/clouddriver

sed "s/^\(DEFAULT_JVM_OPTS\)\s*=\s*'.*'\$/\1='$extra_opts_escaped'/" -i clouddriver-web/build/install/clouddriver/bin/clouddriver

# cat clouddriver-web/build/install/clouddriver/bin/clouddriver
cat clouddriver-web/build/install/clouddriver/bin/clouddriver

- name: dockerBuildpush
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 1b86946

Please sign in to comment.