|
@ -1100,12 +1100,17 @@ get_docker_compose () { |
|
|
debug "Compiling 'docker-compose.yml' base for ${DARKYELLOW}$*$NORMAL..." |
|
|
debug "Compiling 'docker-compose.yml' base for ${DARKYELLOW}$*$NORMAL..." |
|
|
for target_service in "$@"; do |
|
|
for target_service in "$@"; do |
|
|
start=$SECONDS |
|
|
start=$SECONDS |
|
|
services=$(get_ordered_service_dependencies "$target_service") || { |
|
|
|
|
|
|
|
|
services=($(get_ordered_service_dependencies "$target_service")) || { |
|
|
err "Failed to get dependencies for $DARKYELLOW$target_service$NORMAL" |
|
|
err "Failed to get dependencies for $DARKYELLOW$target_service$NORMAL" |
|
|
return 1 |
|
|
return 1 |
|
|
} |
|
|
} |
|
|
debug " $DARKYELLOW$target_service$NORMAL deps:$DARKYELLOW" $services "$NORMAL$GRAY(in $((SECONDS - start))s)$NORMAL" |
|
|
|
|
|
for service in $services; do |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$DEBUG" ]; then |
|
|
|
|
|
debug " $DARKYELLOW$target_service$NORMAL deps:$DARKYELLOW" \ |
|
|
|
|
|
"${services[@]::$((${#services[@]} - 1))}" \ |
|
|
|
|
|
"$NORMAL$GRAY(in $((SECONDS - start))s)$NORMAL" |
|
|
|
|
|
fi |
|
|
|
|
|
for service in "${services[@]}"; do |
|
|
|
|
|
|
|
|
if [ "${entries[$service]}" ]; then |
|
|
if [ "${entries[$service]}" ]; then |
|
|
## Prevent double inclusion of same service if this |
|
|
## Prevent double inclusion of same service if this |
|
|