Add a test endpoint that allows us to manually create builds. Add access tokens to the build data.
This commit is contained in:
parent
c5ff08e57d
commit
78d2d6cad0
7 changed files with 99 additions and 14 deletions
|
@ -108,8 +108,9 @@ def babysit_builder(request):
|
|||
|
||||
repo = repository_build.repository
|
||||
payload = {
|
||||
'tag': 'quay.io/%s/%s' % (repo.namespace, repo.name),
|
||||
'tag': repository_build.tag,
|
||||
'resource_url': user_files.get_file_url(repository_build.resource_key),
|
||||
'token': repository_build.access_token.code,
|
||||
}
|
||||
start_build = requests.post(build_endpoint, data=payload)
|
||||
|
||||
|
@ -146,7 +147,7 @@ def babysit_builder(request):
|
|||
def process_work_items(pool):
|
||||
logger.debug('Getting work item from queue.')
|
||||
|
||||
item = dockerfile_build_queue.get()
|
||||
item = dockerfile_build_queue.get(processing_time=60*60) # allow 1 hr
|
||||
|
||||
while item:
|
||||
logger.debug('Queue gave us some work: %s' % item.body)
|
||||
|
|
Reference in a new issue