|
|
@ -2165,16 +2165,13 @@ launch_docker_compose() { |
|
|
|
local charm docker_compose_tmpdir docker_compose_dir |
|
|
|
docker_compose_tmpdir=$(mktemp -d -t tmp.XXXXXXXXXX) |
|
|
|
#debug "Creating temporary docker-compose directory in '$docker_compose_tmpdir'." |
|
|
|
# trap_add EXIT "debug \"Removing temporary docker-compose directory in $docker_compose_tmpdir.\";\ |
|
|
|
# rm -rf \"$docker_compose_tmpdir\"" |
|
|
|
trap_add EXIT "rm -rf \"$docker_compose_tmpdir\"" |
|
|
|
|
|
|
|
## docker-compose will name network from the parent dir name |
|
|
|
project=$(get_default_project_name) |
|
|
|
mkdir -p "$docker_compose_tmpdir/$project" |
|
|
|
docker_compose_dir="$docker_compose_tmpdir/$project" |
|
|
|
|
|
|
|
# if [ -z "$SERVICE_PACK" ]; then |
|
|
|
# export SERVICE_PACK=$(get_default_target_services $SERVICE_PACK) |
|
|
|
# fi |
|
|
|
get_docker_compose $SERVICE_PACK > "$docker_compose_dir/docker-compose.yml" || return 1 |
|
|
|
if [ -e "$state_tmpdir/to-merge-in-docker-compose.yml" ]; then |
|
|
|
# debug "Merging some config data in docker-compose.yml:" |
|
|
@ -2199,7 +2196,7 @@ launch_docker_compose() { |
|
|
|
{ |
|
|
|
cd "$docker_compose_dir" |
|
|
|
debug "${WHITE}docker-compose.yml$NORMAL for $DARKYELLOW$SERVICE_PACK$NORMAL:" |
|
|
|
debug "$(cat "$docker_compose_dir/docker-compose.yml" | prefix " $GRAY|$NORMAL ")" |
|
|
|
debug "$(cat "docker-compose.yml" | prefix " $GRAY|$NORMAL ")" |
|
|
|
debug "${WHITE}Launching$NORMAL: docker-compose $@" |
|
|
|
if [ "$DRY_COMPOSE_RUN" ]; then |
|
|
|
echo docker-compose "$@" |
|
|
|