mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
labels use absolute paths
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
79573e1acc
commit
ff0864237c
@ -18,6 +18,7 @@ package compose
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
@ -83,7 +84,9 @@ func testContainer(service string, id string) apitypes.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func containerLabels(service string) map[string]string {
|
func containerLabels(service string) map[string]string {
|
||||||
return map[string]string{serviceLabel: service, configFilesLabel: "docker-compose.yml", workingDirLabel: "testdata", projectLabel: testProject}
|
workingdir, _ := filepath.Abs("testdata")
|
||||||
|
composefile := filepath.Join(workingdir, "docker-compose.yml")
|
||||||
|
return map[string]string{serviceLabel: service, configFilesLabel: composefile, workingDirLabel: workingdir, projectLabel: testProject}
|
||||||
}
|
}
|
||||||
|
|
||||||
func anyCancellableContext() gomock.Matcher {
|
func anyCancellableContext() gomock.Matcher {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user