Dockerfile: update test-registry to v2.8.1 (latest release)#42889
Dockerfile: update test-registry to v2.8.1 (latest release)#42889thaJeztah wants to merge 2 commits intomoby:masterfrom
Conversation
|
Yup, looks to be failing on many tests. From the output of those tests, it seems the registry is not starting correctly, or somehow not listening on the expected port/ip |
|
Can we reproduce locally? (I'm not at all familiar with these tests 🙈) It would probably help to try and get logs from the registry instance to see what's going wrong. 😅 |
74b6376 to
c25d96f
Compare
|
Rebased this one, and changed it to v2.8.0, which was now released. Lots of failures still, related to the `` mediatype: I'm wondering why it's logging the same warning twice (but perhaps one of them was a That warning is coming from https://github.com/containerd/containerd/blob/v1.5.9/remotes/handlers.go#L73-L86, and it looks like that's all hard-coded (wondering if the containerd code should have a way to register custom mediaTypes) However, those are "just" warnings? The actual error in the test above looks to be that we're unable to connect (or that the registry is refusing the plugin mediatype);
Looking at the 2.8.0 code; it looks like there's a concept of That option was added in v2.7 (through distribution/distribution@e02278f), but Ok, so looks like further digging may be needed. |
|
oh! just realised that registry 2.8.0 now comes in all architectures, so we no longer have to build it from source (can just |
|
... and ... I guess I just noticed what may be related when looking at that; The code was still assuming |
d926a08 to
0d33996
Compare
|
Oh; I see I didn't post that yet, but stumbled upon a PR, (had a tab still open with it); Could this failure could have to do with #42210, which was done to handle a regression (see #42191), but I'm wondering if that's causing the "reverse" effect when using a newer registry (perhaps it no longer supports that type by default, but didn't dig into that yet) |
0d33996 to
15b89fb
Compare
|
|
||
| # REGISTRY_VERSION specifies the version of the registry to build and install | ||
| # from the https://github.com/docker/distribution repository. This version of | ||
| # the registry is used to test both schema 1 and schema 2 manifests. Generally, |
There was a problem hiding this comment.
This isn't totally accurate anymore, right? (There's a separate version used below for schema 1)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
The official registry 2.8.1 image now comes with all architectures that
we're interested in, so we can just copy the binary from that image instead
of building it from source:
docker buildx imagetools inspect registry:2.8.1 | grep Platform
Platform: linux/amd64
Platform: linux/arm/v6
Platform: linux/arm/v7
Platform: linux/arm64/v8
Platform: linux/ppc64le
Platform: linux/s390x
Signed-off-by: Sebastiaan van Stijn <[email protected]>
15b89fb to
8ca4f5b
Compare
follow-up to #42881. Updating the version of the registry caused tests to fail, so moving it to a separate PR to dive into what's causing those failures (and if there's possibly an actual issue; either a bug or an issue in how we use the registry for testing)
- A picture of a cute animal (not mandatory but encouraged)