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

[2.2.x] Basic integration fails on ARM64 #5280

Closed
tdiesler opened this issue Mar 25, 2024 · 4 comments
Closed

[2.2.x] Basic integration fails on ARM64 #5280

tdiesler opened this issue Mar 25, 2024 · 4 comments
Labels
kind/bug Something isn't working

Comments

@tdiesler
Copy link
Contributor

tdiesler commented Mar 25, 2024

Steps to reproduce

cd $HOME/git/camel-k
git checkout v2.2.0

IMAGE_ARCH=arm64 make images
go build ./cmd/kamel

kamel install --olm=false --operator-image=apache/camel-k:2.2.0-arm64 --base-image=eclipse-temurin:17-jdk@sha256:e8d451f3b5aa6422c2b00bb913cb8d37a55a61934259109d945605c5651de9a6 --build-publish-strategy Jib

kubectl describe pod -l app=camel-k
kubectl logs -f --tail=400 -l app=camel-k

cd $HOME/git/camel-k-examples/01-basic
kamel run Basic.java --dev
...
Integration "basic" in phase "Running"
[1] Monitoring pod basic-576695546d-v6p9n
[1] exec /bin/sh: exec format error

Camel K version

2.2.0

@tdiesler tdiesler added the kind/bug Something isn't working label Mar 25, 2024
@tdiesler
Copy link
Contributor Author

It turns out that this also happens with the official 2.2.0 release. When I inspect the Jib generated image, I see ...

        "Architecture": "amd64",
        "Os": "linux",
        "Size": 484003142,

Despite the operator/base image architecture both being arm64, Jib generates an image for amd64

@tdiesler
Copy link
Contributor Author

  • Updating to jib-3.4.1 does not fix it
  • Adding -Djib.from.platforms=linux/arm64 fixes it for this platform

This fix would also make --base-image=eclipse-temurin:17-jdk@sha256:e8d451f3b5aa6422c2b00bb913cb8d37a55a61934259109d945605c5651de9a6 obsolete

Can we perhaps use the operator version suffix as an indicator of what jib.from.platforms to add?

@tdiesler
Copy link
Contributor Author

PR: #5286

@tdiesler
Copy link
Contributor Author

Won't Fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant