[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 10/39] tests/docker: don't use BUILDKIT in GitLab either
From: |
Alex Bennée |
Subject: |
[PATCH v1 10/39] tests/docker: don't use BUILDKIT in GitLab either |
Date: |
Tue, 6 Jul 2021 15:57:48 +0100 |
From: Daniel P. Berrangé <berrange@redhat.com>
Using BUILDKIT breaks with certain container registries such as CentOS,
with docker build reporting an error such as
failed to solve with frontend dockerfile.v0:
failed to build LLB: failed to load cache key:
unexpected status code
https://registry.centos.org/v2/centos/manifests/7:
403 Forbidden
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Message-Id: <20210623142245.307776-3-berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/docker/docker.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 4d9bb7c7ed..78dd13171e 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -228,7 +228,9 @@ class Docker(object):
def __init__(self):
self._command = _guess_engine_command()
- if "docker" in self._command and "TRAVIS" not in os.environ:
+ if ("docker" in self._command and
+ "TRAVIS" not in os.environ and
+ "GITLAB_CI" not in os.environ):
os.environ["DOCKER_BUILDKIT"] = "1"
self._buildkit = True
else:
--
2.20.1
- [PATCH v1 00/39] final pre-PR for 6.1 (testing and plugins), Alex Bennée, 2021/07/06
- [PATCH v1 01/39] Jobs based on custom runners: documentation and configuration placeholder, Alex Bennée, 2021/07/06
- [PATCH v1 03/39] Jobs based on custom runners: docs and gitlab-runner setup playbook, Alex Bennée, 2021/07/06
- [PATCH v1 06/39] build: validate that system capstone works before using it, Alex Bennée, 2021/07/06
- [PATCH v1 12/39] tests/docker: use explicit docker.io registry, Alex Bennée, 2021/07/06
- [PATCH v1 04/39] Jobs based on custom runners: add job definitions for QEMU's machines, Alex Bennée, 2021/07/06
- [PATCH v1 05/39] tests/tcg: generalise the disabling of the signals test, Alex Bennée, 2021/07/06
- [PATCH v1 09/39] hw/usb/ccid: remove references to NSS, Alex Bennée, 2021/07/06
- [PATCH v1 10/39] tests/docker: don't use BUILDKIT in GitLab either,
Alex Bennée <=
- [PATCH v1 08/39] cirrus: delete FreeBSD and macOS jobs, Alex Bennée, 2021/07/06
- [PATCH v1 07/39] gitlab: support for FreeBSD 12, 13 and macOS 11 via cirrus-run, Alex Bennée, 2021/07/06
- [PATCH v1 37/39] plugins/cache: Added FIFO and LRU eviction policies, Alex Bennée, 2021/07/06
- [PATCH v1 13/39] tests/docker: remove FEATURES env var from templates, Alex Bennée, 2021/07/06
- [PATCH v1 02/39] Jobs based on custom runners: build environment docs and playbook, Alex Bennée, 2021/07/06
- [PATCH v1 11/39] tests/docker: use project specific container registries, Alex Bennée, 2021/07/06
- [PATCH v1 34/39] docs/devel: tcg-plugins: add execlog plugin description, Alex Bennée, 2021/07/06
- [PATCH v1 32/39] contrib/plugins: enable -Wall for building plugins, Alex Bennée, 2021/07/06
- [PATCH v1 33/39] contrib/plugins: add execlog to log instruction execution and memory access, Alex Bennée, 2021/07/06