Skip to content

bug(docker): no full arm64 support #7291

@kpoleuni

Description

@kpoleuni

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    armAzure Resource Manager querybugSomething isn't workingcommunityCommunity contributiondockerDocker query

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions