gchq / sleeper

A cloud-native, serverless, scalable, cheap key-value store
Apache License 2.0
62 stars 9 forks source link

Sleeper CLI Docker images on main branch can't be pulled #2494

Closed patchwork01 closed 1 month ago

patchwork01 commented 3 months ago

Description

After a while, Docker images built against the main branch seem to become unavailable to pull. We get manifest unknown from a docker image pull even when the image is visible on GHCR with the specified tag.

Here's a GitHub community discussion on this problem, which seems to be a bug in GitHub:

Steps to reproduce

  1. See image displays as existing in GitHub at https://github.com/gchq/sleeper/pkgs/container/sleeper-deployment/195478646?tag=0.22.1
  2. Run docker image pull ghcr.io/gchq/sleeper-deployment:0.22.1
  3. See mainfest unknown failure
  4. See download count incremented in GitHub UI, and does each time you run docker image pull, even with the failure
  5. Run docker manifest inspect ghcr.io/gchq/sleeper-deployment:0.22.1
  6. See manifest unknown failure

Expected behaviour

Images should stay available for download indefinitely while tagged.

Screenshots/Logs

$ docker logout ghcr.io
Removing login credentials for ghcr.io
$ docker image pull ghcr.io/gchq/sleeper-deployment:0.22.1
0.22.1: Pulling from gchq/sleeper-deployment
manifest unknown
$ docker manifest inspect ghcr.io/gchq/sleeper-deployment:0.22.1
manifest unknown
$ docker manifest inspect ghcr.io/gchq/sleeper-deployment:0.21.0
manifest unknown
$ docker manifest inspect ghcr.io/gchq/sleeper-deployment:develop
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 3254,
         "digest": "sha256:adf980c91d2c5ae538f8332a8c94ff1669d2e3facdd7d18bb06d92c34ee8cf75",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 3254,
         "digest": "sha256:a3c6de52536cc71df289160feb9d81d70a3783bb3316a1692953d6ca8fc3e84f",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      }
   ]
}

Background

This causes:

patchwork01 commented 3 months ago

On hold as I've raised a support ticket with GitHub.

patchwork01 commented 1 month ago

No longer on hold as this should be resolved by the following issue: