about summary refs log tree commit diff
path: root/docker-build.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-build.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-build.sh')
-rwxr-xr-xdocker-build.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker-build.sh b/docker-build.sh
new file mode 100755
index 0000000000..dc098ade96
--- /dev/null
+++ b/docker-build.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+image_tag=(`cat gradle.properties | grep "cas.version" | cut -d= -f2`)
+
+echo "Building CAS docker image tagged as [v$image_tag]"
+# read -p "Press [Enter] to continue..." any_key;
+
+docker build --tag="apereo/cas:v$image_tag" . \
+  && echo "Built CAS image successfully tagged as apereo/cas:v$image_tag" \
+  && docker images "apereo/cas:v$image_tag"
\ No newline at end of file