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

is debug executor multi-arch ? #1526

Closed
jd1378 opened this issue Dec 17, 2020 · 3 comments
Closed

is debug executor multi-arch ? #1526

jd1378 opened this issue Dec 17, 2020 · 3 comments

Comments

@jd1378
Copy link

jd1378 commented Dec 17, 2020

I wanted to know if debug image is multi-arch ? if not, can we have a multi-arch debug image ?
I'm trying to use --customPlatform flag in debug image But i get unknown flag: --customPlatform

Edit: A bit more context on this:
I'm using kaniko in my gitlab ci file, at the end I'm calling it like this:
/kaniko/executor --customPlatform "$HOST_ARCH" --context "$CI_PROJECT_DIR" --dockerfile "$CI_PROJECT_DIR/Dockerfile" $FORMATTEDTAGLIST $IMAGE_LABELS
($HOST_ARCH="linux/arm")

what I'm trying to do is to build an image for arm using another image (arm32v7/node:lts-alpine in this case)
and this is the content of my dockerfile that im creating:

FROM arm32v7/node:lts-alpine
RUN apk add --update --no-cache openssh sshpass rsync

here is my repo

@linus-ha
Copy link

Would be great to have. For the meantime you can use: https://gitlab.com/mariuspod/kaniko/container_registry
this one works great for building on arm. The --customPlatform-flag isn't yet implemented in the latest release. As an alternative use: --build-arg opts="CGO_ENABLED=0 GOARCH=${ARCH}" were ARCH is something like arm, arm64, amd64, 386.

#786
#786 (comment)
#1500

@tejal29
Copy link
Member

tejal29 commented Dec 21, 2020

not yet. coming soon in next release. We have a PR already merged.

@aaron-prindle
Copy link
Collaborator

I believe this has been resolved, the current kaniko release (and for some time, I believe since ~early-2021) has images for multiple arches available:

aprindle@aprindle-ssd ~/Downloads regctl manifest get gcr.io/kaniko-project/executor:v1.10.0-debug
Name:                            gcr.io/kaniko-project/executor:v1.10.0-debug
MediaType:                       application/vnd.oci.image.index.v1+json
Digest:                          sha256:38be801ff68987d41b40a407d2eb25a609113e4c473c4ade235c57e6f4e4ed43
                                 
Manifests:                       
                                 
  Name:                          gcr.io/kaniko-project/executor:v1.10.0-debug@sha256:ef4f747873b76ddcac4d11cc6290606e347cd28ebab5858b6b092aa631f3aebe
  Digest:                        sha256:ef4f747873b76ddcac4d11cc6290606e347cd28ebab5858b6b092aa631f3aebe
  MediaType:                     application/vnd.oci.image.manifest.v1+json
  Platform:                      linux/amd64
                                 
  Name:                          gcr.io/kaniko-project/executor:v1.10.0-debug@sha256:5b9372e2a00176d9dab0b8a776e9a8e2fb21d9d8db3f319a1b11ee1dabfd5090
  Digest:                        sha256:5b9372e2a00176d9dab0b8a776e9a8e2fb21d9d8db3f319a1b11ee1dabfd5090
  MediaType:                     application/vnd.oci.image.manifest.v1+json
  Platform:                      linux/arm64
                                 
  Name:                          gcr.io/kaniko-project/executor:v1.10.0-debug@sha256:3b8ed986bb8d57d5ef53d2b4095ce7dae12e07cfd24d446d60e75cef0ab89b06
  Digest:                        sha256:3b8ed986bb8d57d5ef53d2b4095ce7dae12e07cfd24d446d60e75cef0ab89b06
  MediaType:                     application/vnd.oci.image.manifest.v1+json
  Platform:                      linux/s390x
                                 
  Name:                          gcr.io/kaniko-project/executor:v1.10.0-debug@sha256:2439bacb6d08733e5076a6b6fd23ff617cf88346eeb3fbc63e257dd450f1034d
  Digest:                        sha256:2439bacb6d08733e5076a6b6fd23ff617cf88346eeb3fbc63e257dd450f1034d
  MediaType:                     application/vnd.oci.image.manifest.v1+json
  Platform:                      unknown/unknown
  Annotations:                   
    vnd.docker.reference.digest: sha256:ef4f747873b76ddcac4d11cc6290606e347cd28ebab5858b6b092aa631f3aebe
    vnd.docker.reference.type:   attestation-manifest
                                 
  Name:                          gcr.io/kaniko-project/executor:v1.10.0-debug@sha256:152d7da2cb11e29812ad344d9b7934919cd1f2100add2fa84d1451f86824613f
  Digest:                        sha256:152d7da2cb11e29812ad344d9b7934919cd1f2100add2fa84d1451f86824613f
  MediaType:                     application/vnd.oci.image.manifest.v1+json
  Platform:                      unknown/unknown
  Annotations:                   
    vnd.docker.reference.digest: sha256:5b9372e2a00176d9dab0b8a776e9a8e2fb21d9d8db3f319a1b11ee1dabfd5090
    vnd.docker.reference.type:   attestation-manifest
                                 
  Name:                          gcr.io/kaniko-project/executor:v1.10.0-debug@sha256:a6d86d0641334e3dc5dd5e5526f0148872d1eb676048d06d30e041c72ac3e31d
  Digest:                        sha256:a6d86d0641334e3dc5dd5e5526f0148872d1eb676048d06d30e041c72ac3e31d
  MediaType:                     application/vnd.oci.image.manifest.v1+json
  Platform:                      unknown/unknown
  Annotations:                   
    vnd.docker.reference.digest: sha256:3b8ed986bb8d57d5ef53d2b4095ce7dae12e07cfd24d446d60e75cef0ab89b06
    vnd.docker.reference.type:   attestation-manifest

Marking fixed, please re-open if there is more to address here thanks.

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

No branches or pull requests

4 participants