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
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.
https://github.com/GoogleContainerTools/kaniko/issues/786#issuecomment-533647519
not yet. coming soon in next release. We have a PR already merged.
Most helpful comment
not yet. coming soon in next release. We have a PR already merged.