mirror of
https://github.com/docker/compose.git
synced 2025-07-29 00:24:12 +02:00
e2e compose run --env
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
5a063b7510
commit
b6a0df8d3c
@ -210,4 +210,10 @@ func TestLocalComposeRun(t *testing.T) {
|
||||
res = c.RunDockerCmd(t, "ps", "--all", "--filter", "name=run-test-nginx", "--format", "'{{.Names}}'")
|
||||
assert.Assert(t, !strings.Contains(res.Stdout(), "run-test-nginx"), res.Stdout())
|
||||
})
|
||||
|
||||
t.Run("compose run --env", func(t *testing.T) {
|
||||
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/run-test/compose.yaml", "run", "--env", "FOO=BAR",
|
||||
"front", "env")
|
||||
res.Assert(t, icmd.Expected{Out: "FOO=BAR"})
|
||||
})
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
version: "3.6"
|
||||
services:
|
||||
service_a:
|
||||
image: bash
|
||||
|
@ -1,4 +1,3 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
simple:
|
||||
image: alpine
|
||||
|
@ -1,4 +1,3 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
back:
|
||||
image: alpine
|
||||
|
Loading…
x
Reference in New Issue
Block a user