Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab Agent for Kubernetes GitLab Agent for Kubernetes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • cluster-integration
  • GitLab Agent for KubernetesGitLab Agent for Kubernetes
  • Merge requests
  • !594

Publish multi-arch images using `docker manifest`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Hordur Freyr Yngvason requested to merge publish-multi-arch-agentk-images into master Feb 10, 2022
  • Overview 4
  • Commits 1
  • Pipelines 5
  • Changes 4

What does this Merge Request do?

It changes the public-facing agentk image tags to multi-arch manifests, supporting AMD64 and ARM64 architectures to start with.

WARNING

The -arm64 and -amd64 tags are NOT PUBLIC API.

They are a temporary solution until bazel's rules_docker supports it natively, see https://github.com/bazelbuild/rules_docker/issues/1599 for tracking.

Manual testing

I've verified that the manifest generated in https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/jobs/2080743626 is working on both amd64 (my laptop) and arm64 (a short lived EC2 instance). The post-merge manifests also look good, for example:

$ docker manifest inspect registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:stable
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 591,
         "digest": "sha256:bb5d06428457a49e0139044a0985c8ecf14d3df1caf13b307f6469fd0b156b19",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 591,
         "digest": "sha256:820463e1421c10d155351d69c0f89dab6ab374df8a5f4d9fcb1f4f7bae64b7d8",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      }
   ]
}

Related issues

Resolves #213 (closed)

Edited Feb 11, 2022 by Hordur Freyr Yngvason
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: publish-multi-arch-agentk-images