about summary refs log tree commit diff
path: root/third_party/apereo-cas/overlay/docker-run.sh
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/docker-run.sh
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/docker-run.sh')
-rwxr-xr-xthird_party/apereo-cas/overlay/docker-run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/apereo-cas/overlay/docker-run.sh b/third_party/apereo-cas/overlay/docker-run.sh
new file mode 100755
index 000000000000..6b4ce9755919
--- /dev/null
+++ b/third_party/apereo-cas/overlay/docker-run.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+docker stop cas > /dev/null 2>&1
+docker rm cas > /dev/null 2>&1
+image_tag=(`cat gradle.properties | grep "cas.version" | cut -d= -f2`)
+docker run -d -p 8080:8080 -p 8443:8443 --name="cas" apereo/cas:"v${image_tag}"
+docker logs -f cas
\ No newline at end of file