Kaniko: is debug executor multi-arch ?

Created on 17 Dec 2020  路  2Comments  路  Source: GoogleContainerTools/kaniko

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

Most helpful comment

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

All 2 comments

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

https://github.com/GoogleContainerTools/kaniko/issues/786#issuecomment-533647519

1500

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maurorappa picture maurorappa  路  4Comments

ErikWegner picture ErikWegner  路  4Comments

fkorotkov picture fkorotkov  路  3Comments

danilorsilva picture danilorsilva  路  3Comments

den-is picture den-is  路  3Comments