Arm64 Swift Docker Images?

They took a while to roll through. Should be working now

3 Likes

Amazonlinux2 :white_check_mark:

$ docker manifest inspect swift:5.6.0-amazonlinux2
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1162,
         "digest": "sha256:7bd26bcdd1d5fbcade07174f2cdb7edcd247d10cad93b8962c8603168c23289f",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1162,
         "digest": "sha256:0986a742c749d2f5bac0cdfaa458b62c63c84b24dbe3a3312cb81b75d0ab3b46",
         "platform": {
            "architecture": "arm64",
            "os": "linux",
            "variant": "v8"
         }
      }
   ]
}

Focal :white_check_mark:

docker manifest inspect swift:5.6-focal
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1162,
         "digest": "sha256:a34fb87d14544c49d5aa30c90fcf18347d301e7db1b1e917b23796d687c3e178",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1162,
         "digest": "sha256:3708d167c44e62c928356c1aac9ba27ab77c7a4970d32dc8126a58ca5e2c0520",
         "platform": {
            "architecture": "arm64",
            "os": "linux",
            "variant": "v8"
         }
      }
   ]
}

Bionic aka as latest :x:

docker manifest inspect swift:5.6-bionic
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1162,
         "digest": "sha256:2070c64fbf0afc7fbd751a4fb5856e15908eb06e7752caa0842f915b2f693876",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      }
   ]
}

Unfortunately, the latest image is still missing the ARM "slice".

2 Likes

@mishal_shah was the ARM slice missed off bionic deliberately? [Swift] Add Swift 5.6 Release to offical image by shahmishal · Pull Request #12038 · docker-library/official-images · GitHub

There is no Swift Toolchain for bionic. See: Swift.org - Download Swift

I wonder though, when we should should move latest forward to focal, which would also solve this issue.

Ah that would explain it. Yeah it makes sense to bump latest to focal especially given bionic is EOL is a year