|
@@ -1,14 +1,12 @@
|
|
|
#!/bin/bash
|
|
|
set -o errexit
|
|
|
-
|
|
|
+# Ref: https://stackoverflow.com/a/51789677/9821321
|
|
|
function parseYaml {
|
|
|
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
|
|
|
sed -ne "s|,$s\]$s\$|]|" \
|
|
|
- -e ":1;s|^\($s\)\($w\)$s:$s\[$s\(.*\)$s,$s\(.*\)$s\]|\1\2: [\3]\n\1 - \4|;t1" \
|
|
|
-e "s|^\($s\)\($w\)$s:$s\[$s\(.*\)$s\]|\1\2:\n\1 - \3|;p" $1 | \
|
|
|
sed -ne "s|,$s}$s\$|}|" \
|
|
|
- -e ":1;s|^\($s\)-$s{$s\(.*\)$s,$s\($w\)$s:$s\(.*\)$s}|\1- {\2}\n\1 \3: \4|;t1" \
|
|
|
- -e "s|^\($s\)-$s{$s\(.*\)$s}|\1-\n\1 \2|;p" | \
|
|
|
+ -e "s|^\($s\)-$s{$s\(.*\)$s}|\1-\n\1 \2|;p" | \
|
|
|
sed -ne "s|^\($s\):|\1|" \
|
|
|
-e "s|^\($s\)-$s[\"']\(.*\)[\"']$s\$|\1$fs$fs\2|p" \
|
|
|
-e "s|^\($s\)-$s\(.*\)$s\$|\1$fs$fs\2|p" \
|
|
@@ -42,8 +40,6 @@ done
|
|
|
# Wait to exit until all missing files have been outputted to the user
|
|
|
[ $IS_VALID = false ] && echo "Failed to start docker for missing volume files" && exit
|
|
|
|
|
|
-COMMENTING-OUT
|
|
|
-
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --remove-orphans "$@"
|
|
|
|
|
|
## Blackfire support
|