about summary refs log tree commit diff
path: root/docker-run.sh
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2020-07-05T13·05+0000
committerLuke Granger-Brown <git@lukegb.com>2020-07-05T13·05+0000
commit2e185f50c38db1a85f39a6bd5ad4c4e58462f003 (patch)
tree2c5705c618802cdeeb141b38787eb7382723606b /docker-run.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 'docker-run.sh')
-rwxr-xr-xdocker-run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker-run.sh b/docker-run.sh
new file mode 100755
index 000000000000..6b4ce9755919
--- /dev/null
+++ b/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