From be9dca04305e2aaefa83694dbec998d5d0831ccc Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Mon, 16 Oct 2023 14:03:28 +0200 Subject: [PATCH] MASTER_PACKAGES env var --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 4231bdba..f0f78521 100644 --- a/utils.py +++ b/utils.py @@ -38,13 +38,14 @@ def getScript(scriptname): """]) # BUILD HELPERS +MASTER_PACKAGES = os.getenv('MASTER_PACKAGES_DIR', default='/mnt/autofs/master_packages') # Helper function that creates a worker instance. def createWorker(worker_name_prefix, worker_id, worker_type, dockerfile, jobs=5, save_packages=False, shm_size='15G', worker_name_suffix='', volumes=['/srv/buildbot/ccache:/mnt/ccache', '/srv/buildbot/packages:/mnt/packages', - '/mnt/autofs/master_packages/:/packages']): + MASTER_PACKAGES+'/:/packages']): worker_name = worker_name_prefix + str(worker_id) + '-docker' name = worker_name + worker_type