Make build_timeout configurable
Per comment in https://review.opendev.org/#/c/678907/ it would be nice to have build_timeout configurable by the CLI. And in fact the job which builds RDO containers for ppc64le needs quite a large timeout, so that's a good reason to make it configurable now. This is the necessary stuff to make a python-tripleoclient feasible. Change-Id: I22387080e69b4881a13d0b37c7c25a75b7740a29
This commit is contained in:
parent
c622351745
commit
1fd78bbce9
|
@ -35,7 +35,7 @@ class BuildahBuilder(base.BaseBuilder):
|
|||
def __init__(self, work_dir, deps, base='fedora', img_type='binary',
|
||||
tag='latest', namespace='master',
|
||||
registry_address='127.0.0.1:8787', push_containers=True,
|
||||
volumes=[], excludes=[]):
|
||||
volumes=[], excludes=[], build_timeout=None):
|
||||
"""Setup the parameters to build with Buildah.
|
||||
|
||||
:params work_dir: Directory where the Dockerfiles or Containerfiles
|
||||
|
@ -57,10 +57,14 @@ class BuildahBuilder(base.BaseBuilder):
|
|||
:params volumes: Bind mount volumes used during buildah bud.
|
||||
Default to [].
|
||||
:params excludes: List of images to skip. Default to [].
|
||||
:params build_timeout: Timeout. Default to constants.BUILD_TIMEOUT
|
||||
"""
|
||||
|
||||
super(BuildahBuilder, self).__init__()
|
||||
self.build_timeout = constants.BUILD_TIMEOUT
|
||||
if build_timeout is None:
|
||||
self.build_timeout = constants.BUILD_TIMEOUT
|
||||
else:
|
||||
self.build_timeout = build_timeout
|
||||
self.work_dir = work_dir
|
||||
self.deps = deps
|
||||
self.base = base
|
||||
|
|
Loading…
Reference in New Issue