Add more debug info to `acquire-build-image` (#1305)

This commit is contained in:
John DiSanti 2022-04-06 09:21:02 -07:00 committed by GitHub
parent 6e63635e97
commit 102f30421e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ class Shell:
# Pulls the requested `image_name` with `image_tag`. Returns `DockerPullResult`. # Pulls the requested `image_name` with `image_tag`. Returns `DockerPullResult`.
def docker_pull(self, image_name, image_tag): def docker_pull(self, image_name, image_tag):
(status, output) = get_cmd_output(f"docker pull \"{image_name}:{image_tag}\"", check=False) (status, output) = get_cmd_output(f"docker pull \"{image_name}:{image_tag}\"", check=False)
print("Docker pull output:")
print("-------------------")
print(output)
print("-------------------")
if status == 0: if status == 0:
return DockerPullResult.SUCCESS return DockerPullResult.SUCCESS
elif "toomanyrequests: Rate exceeded" in output: elif "toomanyrequests: Rate exceeded" in output: