mirror of https://github.com/docker/compose.git
Merge pull request #314 from docker/hide_sidecar
Hide sidecar container from compose progress
This commit is contained in:
commit
e1967921bd
|
@ -33,6 +33,7 @@ import (
|
||||||
"github.com/morikuni/aec"
|
"github.com/morikuni/aec"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
|
"github.com/docker/api/azure/convert"
|
||||||
"github.com/docker/api/azure/login"
|
"github.com/docker/api/azure/login"
|
||||||
"github.com/docker/api/context/store"
|
"github.com/docker/api/context/store"
|
||||||
"github.com/docker/api/progress"
|
"github.com/docker/api/progress"
|
||||||
|
@ -91,12 +92,14 @@ func createOrUpdateACIContainers(ctx context.Context, aciContext store.AciContex
|
||||||
StatusText: "Created",
|
StatusText: "Created",
|
||||||
})
|
})
|
||||||
for _, c := range *groupDefinition.Containers {
|
for _, c := range *groupDefinition.Containers {
|
||||||
|
if c.Name != nil && *c.Name != convert.ComposeDNSSidecarName {
|
||||||
w.Event(progress.Event{
|
w.Event(progress.Event{
|
||||||
ID: *c.Name,
|
ID: *c.Name,
|
||||||
Status: progress.Working,
|
Status: progress.Working,
|
||||||
StatusText: "Waiting",
|
StatusText: "Waiting",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
err = future.WaitForCompletionRef(ctx, containerGroupsClient.Client)
|
err = future.WaitForCompletionRef(ctx, containerGroupsClient.Client)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -104,12 +107,14 @@ func createOrUpdateACIContainers(ctx context.Context, aciContext store.AciContex
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, c := range *groupDefinition.Containers {
|
for _, c := range *groupDefinition.Containers {
|
||||||
|
if c.Name != nil && *c.Name != convert.ComposeDNSSidecarName {
|
||||||
w.Event(progress.Event{
|
w.Event(progress.Event{
|
||||||
ID: *c.Name,
|
ID: *c.Name,
|
||||||
Status: progress.Done,
|
Status: progress.Done,
|
||||||
StatusText: "Done",
|
StatusText: "Done",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue