diff options
author | 2023-03-10 23:33:41 +0100 | |
---|---|---|
committer | 2023-03-10 23:33:41 +0100 | |
commit | f9eed766d660ae99972201950f311c4cefc59be8 (patch) | |
tree | fbd7314727400112e17aa443a108f0d3e71bc1f0 | |
parent | Fix 2 bugs in db for email (diff) | |
download | tinderbox-cluster-f9eed766d660ae99972201950f311c4cefc59be8.tar.gz tinderbox-cluster-f9eed766d660ae99972201950f311c4cefc59be8.tar.bz2 tinderbox-cluster-f9eed766d660ae99972201950f311c4cefc59be8.zip |
Download docker images befor build
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
-rw-r--r-- | buildbot_gentoo_ci/steps/nodes.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/buildbot_gentoo_ci/steps/nodes.py b/buildbot_gentoo_ci/steps/nodes.py index f92727b..7a01cbb 100644 --- a/buildbot_gentoo_ci/steps/nodes.py +++ b/buildbot_gentoo_ci/steps/nodes.py @@ -108,6 +108,25 @@ class SetupBuildStepsForDocker(BuildStep): self.buildargs['BINHOSTURL'] = node_data['bin_host_url'] # set bootstrap image self.buildargs['BOOTSTRAPTAG'] = image_data['bootstrap_tag'] + # get the latest portage and bootstrap_tag images + aftersteps_list.append(steps.ShellCommand( + flunkOnFailure=True, + name='Pull ' + image_data['bootstrap_tag'], + command=['docker', + 'image', + 'pull', + image_data['bootstrap_tag'] + ] + )) + aftersteps_list.append(steps.ShellCommand( + flunkOnFailure=True, + name='Pull gentoo/portage:latest', + command=['docker', + 'image', + 'pull', + 'gentoo/portage:latest' + ] + )) # build the gentoo docker buildbot-worker image aftersteps_list.append(steps.ShellCommand( flunkOnFailure=True, |