]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
gitlab/opensbi: Move to docker:stable
authorPalmer Dabbelt <palmer@rivosinc.com>
Fri, 3 Mar 2023 20:24:47 +0000 (12:24 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 5 Mar 2023 23:40:00 +0000 (15:40 -0800)
The OpenSBI build has been using docker:19.03.1, which appears to be old
enough that v2 of the manifest is no longer supported.  Something has
started serving us those manifests, resulting in errors along the lines
of

    $ docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $IMAGE_TAG .gitlab-ci.d/opensbi
    Step 1/7 : FROM ubuntu:18.04
    18.04: Pulling from library/ubuntu
    mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'

This moves to docker:stable, as was suggested by the template.  It also
adds the python3 package via apt, as OpenSBI requires that to build.

Reviewed-by: Bin Meng <bmeng@tinylab.org>
Message-ID: <20230303202448.11911-2-palmer@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
.gitlab-ci.d/opensbi.yml
.gitlab-ci.d/opensbi/Dockerfile

index 04ed5a3ea1396b2baeafdfcc0dd3eb2f65048747..9a651465d8a17cf52bb605732b31805412ae4387 100644 (file)
@@ -42,9 +42,9 @@
 docker-opensbi:
   extends: .opensbi_job_rules
   stage: containers
-  image: docker:19.03.1
+  image: docker:stable
   services:
-    - docker:19.03.1-dind
+    - docker:stable-dind
   variables:
     GIT_DEPTH: 3
     IMAGE_TAG: $CI_REGISTRY_IMAGE:opensbi-cross-build
index 4ba8a4de86bc154e9b65fa74521cff678f00dc6d..5ccf4151f4a1fca9489b238a8778029e230efdb2 100644 (file)
@@ -15,6 +15,7 @@ RUN apt update \
         ca-certificates \
         git \
         make \
+       python3 \
         wget \
     && \
     \