diff mbox series

[1/2] gitlab/opensbi: Move to docker:stable

Message ID 20230224212543.20462-2-palmer@rivosinc.com (mailing list archive)
State New, archived
Headers show
Series Fix the OpenSBI CI job and bump to v1.2 | expand

Commit Message

Palmer Dabbelt Feb. 24, 2023, 9:25 p.m. UTC
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 just moves to docker:stable, as was suggested by the template.

Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
---
 .gitlab-ci.d/opensbi.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Bin Meng Feb. 27, 2023, 3:10 a.m. UTC | #1
On Sat, Feb 25, 2023 at 5:26 AM Palmer Dabbelt <palmer@rivosinc.com> wrote:
>
> 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 just moves to docker:stable, as was suggested by the template.
>
> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
> ---
>  .gitlab-ci.d/opensbi.yml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

Thanks Palmer for looking into this!

Reviewed-by: Bin Meng <bmeng@tinylab.org>
Thomas Huth Feb. 27, 2023, 8:48 a.m. UTC | #2
On 24/02/2023 22.25, Palmer Dabbelt wrote:
> 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 just moves to docker:stable, as was suggested by the template.
> 
> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
> ---
>   .gitlab-ci.d/opensbi.yml | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/.gitlab-ci.d/opensbi.yml b/.gitlab-ci.d/opensbi.yml
> index 04ed5a3ea1..9a651465d8 100644
> --- a/.gitlab-ci.d/opensbi.yml
> +++ b/.gitlab-ci.d/opensbi.yml
> @@ -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

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/.gitlab-ci.d/opensbi.yml b/.gitlab-ci.d/opensbi.yml
index 04ed5a3ea1..9a651465d8 100644
--- a/.gitlab-ci.d/opensbi.yml
+++ b/.gitlab-ci.d/opensbi.yml
@@ -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