|
@@ -15,6 +15,7 @@ from docker.errors import NotFound
|
|
|
|
|
|
from .. import mock
|
|
|
from ..helpers import build_config as load_config
|
|
|
+from ..helpers import BUSYBOX_IMAGE_WITH_TAG
|
|
|
from ..helpers import create_host_file
|
|
|
from .testcases import DockerClientTestCase
|
|
|
from .testcases import SWARM_SKIP_CONTAINERS_ALL
|
|
@@ -128,11 +129,11 @@ class ProjectTest(DockerClientTestCase):
|
|
|
name='composetest',
|
|
|
config_data=load_config({
|
|
|
'data': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'volumes': ['/var/data'],
|
|
|
},
|
|
|
'db': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'volumes_from': ['data'],
|
|
|
},
|
|
|
}),
|
|
@@ -145,7 +146,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
def test_volumes_from_container(self):
|
|
|
data_container = Container.create(
|
|
|
self.client,
|
|
|
- image='busybox:latest',
|
|
|
+ image=BUSYBOX_IMAGE_WITH_TAG,
|
|
|
volumes=['/var/data'],
|
|
|
name='composetest_data_container',
|
|
|
labels={LABEL_PROJECT: 'composetest'},
|
|
@@ -155,7 +156,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
name='composetest',
|
|
|
config_data=load_config({
|
|
|
'db': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'volumes_from': ['composetest_data_container'],
|
|
|
},
|
|
|
}),
|
|
@@ -174,11 +175,11 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': str(V2_0),
|
|
|
'services': {
|
|
|
'net': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"]
|
|
|
},
|
|
|
'web': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'network_mode': 'service:net',
|
|
|
'command': ["top"]
|
|
|
},
|
|
@@ -202,7 +203,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': str(V2_0),
|
|
|
'services': {
|
|
|
'web': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'network_mode': 'container:composetest_net_container'
|
|
|
},
|
|
|
},
|
|
@@ -217,7 +218,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
|
|
|
net_container = Container.create(
|
|
|
self.client,
|
|
|
- image='busybox:latest',
|
|
|
+ image=BUSYBOX_IMAGE_WITH_TAG,
|
|
|
name='composetest_net_container',
|
|
|
command='top',
|
|
|
labels={LABEL_PROJECT: 'composetest'},
|
|
@@ -237,11 +238,11 @@ class ProjectTest(DockerClientTestCase):
|
|
|
name='composetest',
|
|
|
config_data=load_config({
|
|
|
'net': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"]
|
|
|
},
|
|
|
'web': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'net': 'container:net',
|
|
|
'command': ["top"]
|
|
|
},
|
|
@@ -262,7 +263,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
name='composetest',
|
|
|
config_data=load_config({
|
|
|
'web': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'net': 'container:composetest_net_container'
|
|
|
},
|
|
|
}),
|
|
@@ -276,7 +277,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
|
|
|
net_container = Container.create(
|
|
|
self.client,
|
|
|
- image='busybox:latest',
|
|
|
+ image=BUSYBOX_IMAGE_WITH_TAG,
|
|
|
name='composetest_net_container',
|
|
|
command='top',
|
|
|
labels={LABEL_PROJECT: 'composetest'},
|
|
@@ -549,20 +550,20 @@ class ProjectTest(DockerClientTestCase):
|
|
|
name='composetest',
|
|
|
config_data=load_config({
|
|
|
'console': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"],
|
|
|
},
|
|
|
'data': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"]
|
|
|
},
|
|
|
'db': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"],
|
|
|
'volumes_from': ['data'],
|
|
|
},
|
|
|
'web': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"],
|
|
|
'links': ['db'],
|
|
|
},
|
|
@@ -584,20 +585,20 @@ class ProjectTest(DockerClientTestCase):
|
|
|
name='composetest',
|
|
|
config_data=load_config({
|
|
|
'console': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"],
|
|
|
},
|
|
|
'data': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"]
|
|
|
},
|
|
|
'db': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"],
|
|
|
'volumes_from': ['data'],
|
|
|
},
|
|
|
'web': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': ["top"],
|
|
|
'links': ['db'],
|
|
|
},
|
|
@@ -623,7 +624,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': '2.1',
|
|
|
'services': {
|
|
|
'foo': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'tmpfs': ['/dev/shm'],
|
|
|
'volumes': ['/dev/shm']
|
|
|
}
|
|
@@ -664,7 +665,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'networks': {
|
|
|
'foo': None,
|
|
@@ -709,7 +710,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {'front': None},
|
|
|
}],
|
|
|
networks={
|
|
@@ -769,7 +770,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {'front': None},
|
|
|
}],
|
|
|
networks={
|
|
@@ -804,7 +805,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'networks': {
|
|
|
'static_test': {
|
|
@@ -856,7 +857,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_3,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {
|
|
|
'n1': {
|
|
|
'priority': p1,
|
|
@@ -919,7 +920,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'networks': {
|
|
|
'static_test': {
|
|
@@ -962,7 +963,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {
|
|
|
'static_test': {
|
|
|
'ipv4_address': '172.16.100.100',
|
|
@@ -998,7 +999,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {
|
|
|
'linklocaltest': {
|
|
|
'link_local_ips': ['169.254.8.8']
|
|
@@ -1035,7 +1036,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'name': 'web',
|
|
|
'volumes': [VolumeSpec.parse('foo:/container-path')],
|
|
|
'networks': {'foo': {}},
|
|
|
- 'image': 'busybox:latest'
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG
|
|
|
}],
|
|
|
networks={
|
|
|
'foo': {
|
|
@@ -1071,7 +1072,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'isolation': 'default'
|
|
|
}],
|
|
|
)
|
|
@@ -1091,7 +1092,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'isolation': 'foobar'
|
|
|
}],
|
|
|
)
|
|
@@ -1111,7 +1112,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_3,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'runtime': 'runc'
|
|
|
}],
|
|
|
)
|
|
@@ -1131,7 +1132,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_3,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'runtime': 'foobar'
|
|
|
}],
|
|
|
)
|
|
@@ -1151,7 +1152,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_3,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'runtime': 'nvidia'
|
|
|
}],
|
|
|
)
|
|
@@ -1171,7 +1172,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {'internal': None},
|
|
|
}],
|
|
|
networks={
|
|
@@ -1200,7 +1201,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'networks': {network_name: None}
|
|
|
}],
|
|
|
networks={
|
|
@@ -1233,7 +1234,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={vol_name: {'driver': 'local'}},
|
|
@@ -1260,7 +1261,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'volumes': [VolumeSpec.parse('{}:/data'.format(volume_name))]
|
|
|
}],
|
|
|
volumes={
|
|
@@ -1299,9 +1300,9 @@ class ProjectTest(DockerClientTestCase):
|
|
|
{
|
|
|
'version': str(V2_0),
|
|
|
'services': {
|
|
|
- 'simple': {'image': 'busybox:latest', 'command': 'top'},
|
|
|
+ 'simple': {'image': BUSYBOX_IMAGE_WITH_TAG, 'command': 'top'},
|
|
|
'another': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'logging': {
|
|
|
'driver': "json-file",
|
|
@@ -1352,7 +1353,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': str(V2_0),
|
|
|
'services': {
|
|
|
'simple': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'ports': ['1234:1234']
|
|
|
},
|
|
@@ -1386,7 +1387,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_2,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'scale': 3
|
|
|
}]
|
|
@@ -1416,7 +1417,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={vol_name: {}},
|
|
@@ -1440,7 +1441,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={vol_name: {}},
|
|
@@ -1464,7 +1465,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V3_1,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'cat /run/secrets/special',
|
|
|
'secrets': [
|
|
|
types.ServiceSecret.parse({'source': 'super', 'target': 'special'}),
|
|
@@ -1502,7 +1503,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'services': [
|
|
|
{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'cat /run/secrets/special',
|
|
|
'environment': ['constraint:node=={}'.format(node if node is not None else '')]
|
|
|
}
|
|
@@ -1555,7 +1556,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={vol_name: {'driver': 'foobar'}},
|
|
@@ -1578,7 +1579,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={vol_name: {'driver': 'local'}},
|
|
@@ -1620,7 +1621,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={
|
|
@@ -1662,7 +1663,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={vol_name: {'driver': 'local'}},
|
|
@@ -1701,7 +1702,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={
|
|
@@ -1725,7 +1726,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
version=V2_0,
|
|
|
services=[{
|
|
|
'name': 'web',
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top'
|
|
|
}],
|
|
|
volumes={
|
|
@@ -1753,7 +1754,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': str(V2_0),
|
|
|
'services': {
|
|
|
'simple': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'volumes': ['{0}:/data'.format(vol_name)]
|
|
|
},
|
|
@@ -1782,7 +1783,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
def test_project_up_orphans(self):
|
|
|
config_dict = {
|
|
|
'service1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
}
|
|
|
}
|
|
@@ -1819,7 +1820,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
def test_project_up_ignore_orphans(self):
|
|
|
config_dict = {
|
|
|
'service1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
}
|
|
|
}
|
|
@@ -1847,7 +1848,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': '2.1',
|
|
|
'services': {
|
|
|
'svc1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'healthcheck': {
|
|
|
'test': 'exit 0',
|
|
@@ -1857,7 +1858,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
},
|
|
|
},
|
|
|
'svc2': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'depends_on': {
|
|
|
'svc1': {'condition': 'service_healthy'},
|
|
@@ -1884,7 +1885,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': '2.1',
|
|
|
'services': {
|
|
|
'svc1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'healthcheck': {
|
|
|
'test': 'exit 1',
|
|
@@ -1894,7 +1895,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
},
|
|
|
},
|
|
|
'svc2': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'depends_on': {
|
|
|
'svc1': {'condition': 'service_healthy'},
|
|
@@ -1923,14 +1924,14 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': '2.1',
|
|
|
'services': {
|
|
|
'svc1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'healthcheck': {
|
|
|
'disable': True
|
|
|
},
|
|
|
},
|
|
|
'svc2': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'depends_on': {
|
|
|
'svc1': {'condition': 'service_healthy'},
|
|
@@ -1967,7 +1968,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': '2.3',
|
|
|
'services': {
|
|
|
'svc1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'top',
|
|
|
'security_opt': ['seccomp:"{}"'.format(profile_path)]
|
|
|
}
|
|
@@ -1991,7 +1992,7 @@ class ProjectTest(DockerClientTestCase):
|
|
|
'version': '2.3',
|
|
|
'services': {
|
|
|
'svc1': {
|
|
|
- 'image': 'busybox:latest',
|
|
|
+ 'image': BUSYBOX_IMAGE_WITH_TAG,
|
|
|
'command': 'ls',
|
|
|
'volumes': ['foo:/foo:rw'],
|
|
|
'networks': ['bar'],
|