Skip to content

Success output of 'docker compose' command should only be shown when '--info' is passed to Gradle #462

@TheoLassonder

Description

@TheoLassonder

Hi there! The output of "docker compose up" and "docker compose down" appears on the console when running tasks. As an example, this is what you see:

$ ./gradlew SampleApp:test
> Task :SampleApp:composeUp
Will use localhost as host of db
Will use localhost as host of receiver
Will use localhost as host of sender
Will use localhost as host of worker
Probing TCP socket on localhost:5439 of 'db-1'
Waiting for TCP socket on localhost:5439 of 'db-1' (TCP connection on localhost:5439 of 'db-1' was disconnected right after connected)
Will use localhost as host of db
Waiting for TCP socket on localhost:5439 of 'db-1' (TCP connection on localhost:5439 of 'db-1' was disconnected right after connected)
Will use localhost as host of db
TCP socket on localhost:5439 of 'db-1' is ready
Probing TCP socket on localhost:20080 of 'receiver-1'
Waiting for TCP socket on localhost:20080 of 'receiver-1' (TCP connection on localhost:20080 of 'receiver-1' was disconnected right after connected)
Will use localhost as host of receiver
TCP socket on localhost:20080 of 'receiver-1' is ready
+------------+----------------+-----------------+
| Name       | Container Port | Mapping         |
+------------+----------------+-----------------+
| db-1       | 5432           | localhost:5439  |
+------------+----------------+-----------------+
| receiver-1 | 20080          | localhost:20080 |
+------------+----------------+-----------------+

> Task :SampleApp:composeDown
 Container 28619d8325560bc41517cf49d1163b35_dashboard-worker-1  Stopping
 Container 28619d8325560bc41517cf49d1163b35_dashboard-sender-1  Stopping
 Container 28619d8325560bc41517cf49d1163b35_dashboard-worker-1  Stopped
 Container 28619d8325560bc41517cf49d1163b35_dashboard-sender-1  Stopped
 Container 28619d8325560bc41517cf49d1163b35_dashboard-receiver-1  Stopping
 Container 28619d8325560bc41517cf49d1163b35_dashboard-receiver-1  Stopped
 Container 28619d8325560bc41517cf49d1163b35_dashboard-db-1  Stopping
 Container 28619d8325560bc41517cf49d1163b35_dashboard-db-1  Stopped

However, the output should only appear if --info is passed to Gradle, should it not? Otherwise there should be no output at all if the task is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions