From eb752c2106baf7cbc9ea11a5f15d240a9bd5b9ab Mon Sep 17 00:00:00 2001 From: g00de <31203513+g00de@users.noreply.github.com> Date: Fri, 8 Dec 2017 14:58:05 +0100 Subject: [PATCH] down on failed up because of healthcheck during compose up because of dependencies between containers with condition "service_healthy" --- .../com/avast/gradle/dockercompose/tasks/ComposeUp.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/avast/gradle/dockercompose/tasks/ComposeUp.groovy b/src/main/groovy/com/avast/gradle/dockercompose/tasks/ComposeUp.groovy index c66aad9..72e1094 100644 --- a/src/main/groovy/com/avast/gradle/dockercompose/tasks/ComposeUp.groovy +++ b/src/main/groovy/com/avast/gradle/dockercompose/tasks/ComposeUp.groovy @@ -1,6 +1,9 @@ package com.avast.gradle.dockercompose.tasks -import com.avast.gradle.dockercompose.* +import com.avast.gradle.dockercompose.ComposeSettings +import com.avast.gradle.dockercompose.ContainerInfo +import com.avast.gradle.dockercompose.ServiceHost +import com.avast.gradle.dockercompose.ServiceInfo import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction @@ -46,8 +49,8 @@ class ComposeUp extends DefaultTask { args += settings.upAdditionalArgs } args += settings.startedServices - settings.composeExecutor.execute(args) try { + settings.composeExecutor.execute(args) if (settings.captureContainersOutput) { settings.composeExecutor.captureContainersOutput(logger.&lifecycle) }