Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.27.1-core not building amd64 images on M1+ macs #4279

Open
Rattenkrieg opened this issue Jun 29, 2024 · 1 comment
Open

v0.27.1-core not building amd64 images on M1+ macs #4279

Rattenkrieg opened this issue Jun 29, 2024 · 1 comment

Comments

@Rattenkrieg
Copy link

Environment:

  • Jib version: v0.27.1-core
  • Build tool: gradle 8.7 with custom binary plugin using v0.27.1-core
  • OS: Darwin Kernel Version 23.5.0

Description of the issue:
I have my cloud running amd64/linux containers hence I build with .setPlatforms(setOf(Platform("amd64", "linux"))). My CI setup is the same arch however sometimes I use to deploy from my M1 Mac (build image + push image + deploy) and since #4249 I'm getting

The configured platforms don't match the Docker Engine's OS and architecture (linux/arm64)

I see that there are changes in that PR that examine docker -info and my setup obviously reports Architecture: aarch64 which being treated as an error despite my Mac totally happy to docker build --platform linux/amd64.

While this issue being triaged/fixed, maybe someone knows a way to configure docker to pretend it running on amd64 when asked for docker info ...?

@johncook-ch
Copy link

This issue is stopping us to upgrading to the latest version. My team and all onn M1 Macbook Pros but building images for linux/amd64 to be deployed to AWS EC2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants