Skip to content

Commit

Permalink
MASTER_PACKAGES env var
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Oct 16, 2023
1 parent a8c9c3f commit be9dca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit be9dca0

Please sign in to comment.