Skip to content

Commit aebf7a2

Browse files
authored
Update ci.py
1 parent 7d5fae3 commit aebf7a2

File tree

1 file changed

+7
-2
lines changed
  • github-ci/src/biocontainersci

1 file changed

+7
-2
lines changed

github-ci/src/biocontainersci/ci.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CI:
2020

2121
def __init__(self, config):
2222
self.config = config
23-
self.docker_client = docker.DockerClient(base_url='unix://var/run/docker.sock')
23+
self.docker_client = docker.DockerClient(base_url='unix://var/run/docker.sock', timeout=600)
2424
# urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
2525

2626
def name(self, f):
@@ -306,6 +306,7 @@ def workflow(self, f):
306306

307307
# singularity
308308
self.singularity(f)
309+
logging.info('Singularity build done')
309310

310311
status = True
311312
except Exception as e:
@@ -324,7 +325,11 @@ def workflow(self, f):
324325
self.docker_client.images.remove(image=self.local_name(f), force=True)
325326
except Exception:
326327
pass
328+
329+
logging.info('Docker images prune')
327330
self.docker_client.images.prune()
331+
332+
logging.info('Docker containers prune')
328333
self.docker_client.containers.prune()
329334
return status
330335

@@ -437,4 +442,4 @@ def check_labels(self, f:dict, labels:dict):
437442
except Exception as e:
438443
logging.warn('[ci][labels] error: ' + str(e))
439444

440-
return status
445+
return status

0 commit comments

Comments
 (0)