diff options
author | Luke Granger-Brown <git@lukegb.com> | 2020-07-05T13·05+0000 |
---|---|---|
committer | Luke Granger-Brown <git@lukegb.com> | 2020-07-05T13·05+0000 |
commit | 2e185f50c38db1a85f39a6bd5ad4c4e58462f003 (patch) | |
tree | 2c5705c618802cdeeb141b38787eb7382723606b /src/main/jib/docker/entrypoint.sh |
Squashed 'third_party/apereo-cas/overlay/' content from commit 2881b2c0d
git-subtree-dir: third_party/apereo-cas/overlay git-subtree-split: 2881b2c0d8dcaae25582c4607f2dbadfb5a50953
Diffstat (limited to 'src/main/jib/docker/entrypoint.sh')
-rwxr-xr-x | src/main/jib/docker/entrypoint.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/jib/docker/entrypoint.sh b/src/main/jib/docker/entrypoint.sh new file mode 100755 index 000000000000..a3a0895b04df --- /dev/null +++ b/src/main/jib/docker/entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +#echo -e "\nChecking java..." +#java -version + +#echo -e "\nCreating CAS configuration directories..." +mkdir -p /etc/cas/config +mkdir -p /etc/cas/services + +#echo "Listing provided CAS docker artifacts..." +#ls -R docker/cas + +#echo -e "\nMoving CAS configuration artifacts..." +mv docker/cas/thekeystore /etc/cas 2>/dev/null +mv docker/cas/config/*.* /etc/cas/config 2>/dev/null +mv docker/cas/services/*.* /etc/cas/services 2>/dev/null + +#echo -e "\nListing CAS configuration under /etc/cas..." +#ls -R /etc/cas + +echo -e "\nRunning CAS..." +exec java -Xms512m -Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -jar docker/cas/war/cas.war |