Skip to content

Commit

Permalink
fix JVM argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed Dec 20, 2023
1 parent 86d013c commit ee4d8f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/src/main/resources/overlay/puppeteer/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash

RUN_ARGS=""
CAS_ARGS="${CAS_ARGS:-}"

RED="\e[31m"
Expand Down
13 changes: 13 additions & 0 deletions ci/validate-cas-overlay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ if [[ "${FETCH_OVERLAY}" == "true" ]]; then
exit 0
fi

dname="${dname:-CN=cas.example.org,OU=Example,OU=Org,C=US}"
subjectAltName="${subjectAltName:-dns:example.org,dns:localhost,ip:127.0.0.1}"
keystore="/etc/cas/thekeystore"
sudo mkdir -p /etc/cas
printgreen "Generating keystore ${keystore} for CAS with DN=${dname}, SAN=${subjectAltName}"
[ -f "${keystore}" ] && sudo rm "${keystore}"
sudo keytool -genkey -noprompt -alias cas -keyalg RSA -keypass changeit -storepass changeit \
-keystore "${keystore}" -dname "${dname}" -ext SAN="${subjectAltName}"
if [[ $? -ne 0 ]]; then
printred "Unable to create CAS keystore ${keystore}"
exit 1
fi

printgreen "Building CAS overlay in $PWD"
./gradlew clean build --warning-mode all --no-daemon

Expand Down

0 comments on commit ee4d8f2

Please sign in to comment.