entrypoint.sh 647 Bytes
Newer Older
1 2
#!/bin/sh

3 4
#echo -e "\nChecking java..."
#java -version
5

6
#echo -e "\nCreating CAS configuration directories..."
7 8 9
mkdir -p /etc/cas/config
mkdir -p /etc/cas/services

10 11 12 13 14 15 16 17 18 19 20 21
#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..."
hdeadman's avatar
hdeadman committed
22
exec java -Xms512m -Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -jar docker/cas/war/cas.war