mirror of https://github.com/docker/compose.git
Test that net can be extended
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
e566a4dc1c
commit
a9c623fdf2
|
@ -1,6 +1,7 @@
|
||||||
web:
|
web:
|
||||||
image: busybox
|
image: busybox
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
|
net: host
|
||||||
environment:
|
environment:
|
||||||
- FOO=1
|
- FOO=1
|
||||||
- BAR=1
|
- BAR=1
|
||||||
|
|
|
@ -11,6 +11,7 @@ myweb:
|
||||||
BAR: "2"
|
BAR: "2"
|
||||||
# add BAZ
|
# add BAZ
|
||||||
BAZ: "2"
|
BAZ: "2"
|
||||||
|
net: bridge
|
||||||
mydb:
|
mydb:
|
||||||
image: busybox
|
image: busybox
|
||||||
command: top
|
command: top
|
||||||
|
|
|
@ -1762,6 +1762,7 @@ class ExtendsTest(unittest.TestCase):
|
||||||
'name': 'myweb',
|
'name': 'myweb',
|
||||||
'image': 'busybox',
|
'image': 'busybox',
|
||||||
'command': 'top',
|
'command': 'top',
|
||||||
|
'network_mode': 'bridge',
|
||||||
'links': ['mydb:db'],
|
'links': ['mydb:db'],
|
||||||
'environment': {
|
'environment': {
|
||||||
"FOO": "1",
|
"FOO": "1",
|
||||||
|
@ -1779,6 +1780,7 @@ class ExtendsTest(unittest.TestCase):
|
||||||
'name': 'web',
|
'name': 'web',
|
||||||
'image': 'busybox',
|
'image': 'busybox',
|
||||||
'command': '/bin/true',
|
'command': '/bin/true',
|
||||||
|
'network_mode': 'host',
|
||||||
'environment': {
|
'environment': {
|
||||||
"FOO": "2",
|
"FOO": "2",
|
||||||
"BAR": "1",
|
"BAR": "1",
|
||||||
|
@ -1797,6 +1799,7 @@ class ExtendsTest(unittest.TestCase):
|
||||||
'name': 'myweb',
|
'name': 'myweb',
|
||||||
'image': 'busybox',
|
'image': 'busybox',
|
||||||
'command': '/bin/true',
|
'command': '/bin/true',
|
||||||
|
'network_mode': 'host',
|
||||||
'environment': {
|
'environment': {
|
||||||
"FOO": "2",
|
"FOO": "2",
|
||||||
"BAR": "2",
|
"BAR": "2",
|
||||||
|
|
Loading…
Reference in New Issue