entrypoint.sh 642 Bytes
Newer Older
Misagh Moayyed's avatar
Misagh Moayyed committed
1 2
#!/bin/sh

3 4
#echo -e "\nChecking java..."
#java -version
Misagh Moayyed's avatar
Misagh Moayyed committed
5

6
#echo -e "\nCreating CAS configuration directories..."
Misagh Moayyed's avatar
Misagh Moayyed committed
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 22
#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..."
java -Xms512m -Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -jar docker/cas/war/cas.war