Skip to content

Build arm64 variant of docker image as part of CD#732

Merged
oleg-nenashev merged 1 commit intojenkinsci:mainfrom
solvingj:patch-1
Aug 1, 2025
Merged

Build arm64 variant of docker image as part of CD#732
oleg-nenashev merged 1 commit intojenkinsci:mainfrom
solvingj:patch-1

Conversation

@solvingj
Copy link
Contributor

@solvingj solvingj commented Jul 8, 2025

  • Buildx is already used in the workflow enabling multi-platform builds
  • Should resolve issues for users trying to work with the image on ARM (eg. all modern macOS)
  • For example, got this error:
InvalidBaseImagePlatform: Base image jenkins/jenkinsfile-runner was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 1)

Testing done

Was able to run clone the repo and run these command locally on an ARM Mac to make it work:

docker buildx build -t jenkins/jenkinsfile-runner:build-mvncache -f packaging/docker/build-mvncache/Dockerfile .
docker buildx build -t jenkins/jenkinsfile-runner -f packaging/docker/unix/eclipse-temurin-11-jre/Dockerfile .

Thats by no means a complete test, but I'm not sure if there's any reasonable way to test this in the Github Action prior to merge.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

- To resolve error on ARM machines (for example, all modern macOS)
- InvalidBaseImagePlatform: Base image jenkins/jenkinsfile-runner was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 1)
@solvingj solvingj requested a review from a team as a code owner July 8, 2025 15:30
@oleg-nenashev oleg-nenashev added the chore Maintenance label Aug 1, 2025
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's see whether it works

@oleg-nenashev oleg-nenashev added enhancement New feature or request and removed chore Maintenance labels Aug 1, 2025
@oleg-nenashev oleg-nenashev merged commit 59dec97 into jenkinsci:main Aug 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants