-
-
Notifications
You must be signed in to change notification settings - Fork 586
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Proposal
Proposal
- Add a simpler wrapper API to start & shut down Docker Compose.
servicesToPrintLogsFor := []string{"service-1"}
waitStrategies := map[string]wait.Strategy{
"service-1": wait.NewLogStrategy(" ... ...").WithStartupTimeout(60 * time.Second).WithPollInterval(1 * time.Millisecond),
"service-2": wait.NewLogStrategy("... ...").WithStartupTimeout(60 * time.Second).WithPollInterval(1 * time.Millisecond),
}
dockerComposeDown, e := tc.DockerComposeUp(dockerComposeFilePath, waitStrategies)
defer dockerComposeDown(servicesToPrintLogsFor)
if e != nil {
return fmt.Errorf("error when attempting to setup & run compose stack: %w", e)
}
Why?
- There are many users who for the most simplest of testing needs require only a simple API to start & shut down their docker compose as part of their test setup & teardown.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request