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

bug(docker): no full arm64 support #7291

Open
kpoleuni opened this issue Oct 25, 2024 · 0 comments
Open

bug(docker): no full arm64 support #7291

kpoleuni opened this issue Oct 25, 2024 · 0 comments
Labels
arm Azure Resource Manager query bug Something isn't working community Community contribution docker Docker query

Comments

@kpoleuni
Copy link

Found a bug? You're welcome to GitHub Discussions

  • Please make sure to:
    • Describe in details what the problem is
    • Attach a log file with relevant data preferably in DEBUG level (--log-level=DEBUG)
    • Attach the scanned sample files, anonymize the data if the original file cannot be provided
    • When attaching files to the issue make sure they are properly formatted

Expected Behavior

v2.1.3 should run on arm64 architecture in gitlab

Actual Behavior

When running the 2.1.3 docker image on arm architecture in gitlab the pipeline fails on it. This seems to be caused by the fact that the image does not fully support arm64.

Returned error on arm64: exec /bin/sh: exec format error

Steps to Reproduce the Problem

podman run --entrypoint /bin/sh --arch arm64 -ti checkmarx/kics:v2.1.2
Linux a901e4c55575 6.8.11-300.fc40.aarch64 #1 SMP PREEMPT_DYNAMIC Mon May 27 15:22:03 UTC 2024 aarch64 Linux

return "aarch64 Linux" as platform

podman run --entrypoint /bin/sh --arch arm64 -ti checkmarx/kics:v2.1.3
Linux eeaaaaf98497 6.8.11-300.fc40.aarch64 #1 SMP PREEMPT_DYNAMIC Mon May 27 15:22:03 UTC 2024 x86_64 Linux
return "x86_64 Linux" as platform

After digging a little deeper the problem seems to be caused by changing the chainguard/git image. If you run the new base image on arm64 it complains about not having the correct support.

in v2.1.3 d007b76406e3e77d8f35b26620ffd1f82d71c61d0c900530c2ac4666a96822b8 is used
podman run --entrypoint bash -ti --arch arm64 cgr.dev/chainguard/git@sha256:d007b76406e3e77d8f35b26620ffd1f82d71c61d0c900530c2ac4666a96822b8
WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
in v2.1.2
podman run --entrypoint bash -ti --arch arm64 cgr.dev/chainguard/git@sha256:51620806588a4738b536e1f328206b17ae2a988b2a424a6a37c419041eb2b9a9

Specifications

(N/A if not applicable)

  • Version:
  • Platform: arm64
  • Subsystem:
@kpoleuni kpoleuni added bug Something isn't working community Community contribution labels Oct 25, 2024
@github-actions github-actions bot added docker Docker query arm Azure Resource Manager query labels Oct 25, 2024
@kpoleuni kpoleuni changed the title bug(<scope>): <title starting with lowercase letter> bug(docker): No full arm64 support Oct 25, 2024
@kpoleuni kpoleuni changed the title bug(docker): No full arm64 support bug(docker): no full arm64 support Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Azure Resource Manager query bug Something isn't working community Community contribution docker Docker query
Projects
None yet
Development

No branches or pull requests

1 participant