From e1c3d2ec14c1617fc779bccfdb64b4c09bdc6525 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 14 Jan 2019 20:41:52 -0700 Subject: Alpha Version --- examples/example6/example6.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 examples/example6/example6.sh (limited to 'examples/example6/example6.sh') diff --git a/examples/example6/example6.sh b/examples/example6/example6.sh new file mode 100755 index 0000000..9078da1 --- /dev/null +++ b/examples/example6/example6.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# vim: set filetype=sh +# +# Author: Cody Hiar +# Date: 2019-01-15 +# +# Description: run docker-compose command +# +# Set options: +# e: Stop script if command fails +# u: Stop script if unset variable is referenced +# x: Debug, print commands as they are executed +# o pipefail: If any command in a pipeline fails it all fails +# +set -exuo pipefail + +# Run the compose file +docker-compose up -- cgit v1.2.3