about summary refs log tree commit diff
path: root/third_party/apereo-cas/overlay/src/main
diff options
context:
space:
mode:
authorlukegb <lukegb@tvl.fyi>2020-07-05T19·21+0000
committerlukegb <lukegb@tvl.fyi>2020-07-05T19·21+0000
commit4b9fde0abe01bb09e0c30402ce89ff02bc0afb49 (patch)
treea43500d29b629314fc12f514c6b6714a214fb20b /third_party/apereo-cas/overlay/src/main
parent8f4dea27a6561a30e4044d532a76e716c6cbf75b (diff)
parentc22796eb2a4c9e9f04dcc098c7705a6ddfce81a5 (diff)
Merge "merge(3p/apereo-cas-overlay): Merge commit '2e185f50c38db1a85f39a6bd5ad4c4e58462f003' as 'third_party/apereo-cas/overlay'" into canon r/1218
Diffstat (limited to 'third_party/apereo-cas/overlay/src/main')
-rwxr-xr-xthird_party/apereo-cas/overlay/src/main/jib/docker/entrypoint.sh22
-rw-r--r--third_party/apereo-cas/overlay/src/main/webapp/WEB-INF/web.xml7
2 files changed, 29 insertions, 0 deletions
diff --git a/third_party/apereo-cas/overlay/src/main/jib/docker/entrypoint.sh b/third_party/apereo-cas/overlay/src/main/jib/docker/entrypoint.sh
new file mode 100755
index 000000000000..a3a0895b04df
--- /dev/null
+++ b/third_party/apereo-cas/overlay/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
diff --git a/third_party/apereo-cas/overlay/src/main/webapp/WEB-INF/web.xml b/third_party/apereo-cas/overlay/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 000000000000..072a6a0fdb42
--- /dev/null
+++ b/third_party/apereo-cas/overlay/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="3.1" 
+     metadata-complete="true"
+     xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
+     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
+</web-app>
\ No newline at end of file