diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-01-14 20:41:52 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-01-14 20:41:52 -0700 |
commit | e1c3d2ec14c1617fc779bccfdb64b4c09bdc6525 (patch) | |
tree | 08a2c3eaa0516cb2d2f984c01721bb457222b13b /examples/example6/example6.sh | |
parent | a69b96fe168a05792288ef2e186a86e6540f85bd (diff) |
Alpha Version
Diffstat (limited to 'examples/example6/example6.sh')
-rwxr-xr-x | examples/example6/example6.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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 |