Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-967

"exec format error" when running the git-clone tasks in shipwright 1.0.x on non-amd64 arch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • builds-1.0
    • builds-operator
    • 0
    • False
    • None
    • False

      Description of problem:

       

      The image shipped by Shipwright to clone the git repositories in the BuildRuns is a ManifestList supporting amd64,arm64,ppc64le,s390x. However, the binary `/ko-app/git` is an amd64 binary in all the manifests.

      Prerequisites (if any, like setup, operators/versions):

      Builds 1.0.1/1.0.0{}

      Steps to Reproduce

       

       

      1. Install Openshift Builds from the Red Hat catalog
      2. Try to run any build and grab the docker manifest of the git-clone step:
      docker://registry.redhat.io/openshift-builds/openshift-builds-git-cloner-rhel8@sha256:3869447f8677a07fdbbb42cbad5fcb23a9aa1d99470951de3e2a37c429d90e59
      3. Use skopeo inspect --raw to get the arm64 manifest: docker://registry.redhat.io/openshift-builds/openshift-builds-git-cloner-rhel8@sha256:6ec4966c3eff2a781b885212a77deaf37fe854de46fd29534e365f54324381e3
      4. Check the binary in /ko-app/git (e.g., with the file command after extracting the file or via podman run if you can run cross-arch containers)
      
      └ $ podman run -it --entrypoint=/bin/bash docker://registry.redhat.io/openshift-builds/openshift-builds-git-cloner-rhel8@sha256:6ec4966c3eff2a781b885212a77deaf37fe854de46fd29534e365f54324381e3 
      WARNING: image platform (linux/arm64) does not match the expected platform (linux/amd64)
      bash-4.4# microdnf install file
      Installing: file;5.33-25.el8;aarch64;ubi-8-baseos-rpms
      Complete.
      bash-4.4# file /ko-app/git 
      /ko-app/git: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
      
        

       

       

       

      Actual results:

      bash-4.4# file /ko-app/git  /ko-app/git: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped  

      Expected results:

      an arm64 binary
      

      Reproducibility (Always/Intermittent/Only Once): Always

      Acceptance criteria: 

       

      Each $arch manifest ships a git binary for $arch.

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              Unassigned Unassigned
              rhn-support-adistefa Alessandro Di Stefano
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: