BUILDBOT: Use user provided network when creating workers

This commit is contained in:
Le Philousophe committed 2021-01-09 11:14:29 +01:00
1 parent e209c99777
commit 7c17752a8f
1 file changed
+2 -2
+2 -2
View File
@@ -32,7 +32,7 @@ def StandardBuilderWorker(name, **kwargs):
'{0}/bshomes:/data/bshomes'.format(config.data_dir),
],
hostconfig={
'network_mode': 'workers-net',
'network_mode': config.docker_workers_net,
'read_only': True,
'mounts': [tmpfs],
},
@@ -52,7 +52,7 @@ def FetcherWorker(name, **kwargs):
'{0}/triggers:/data/triggers'.format(config.data_dir),
],
hostconfig={
'network_mode': 'workers-net',
'network_mode': config.docker_workers_net,
'read_only': True,
'mounts': [tmpfs],
},