-
Notifications
You must be signed in to change notification settings - Fork 58
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
Exec error for multi-platform builds of feature layers #305
Comments
Hello @MartinLoeper , As per the action yml, the docker-build job is running on a nodejs-dind image. Is this a custom image locally created? If this is same as the one from below GitHub repo (very old one) then its built on node 10 with utilities such as git, libxml2-utils, jq, curl, libudev1, iptables along with installed docker (version 17.05.0-ce) and EntryKit (version 0.4.0), finally sets up an entry point for Docker daemon using Entrykit. If I further examine the above mentioned repo, I see the docker & EntryKit installers used are x86_64 versions & the point to be noted is that the very first arm64 build in sequence which was for cosign, failed with exec format error. Now if I replace the "nodejs-dind" with "ubuntu-latest" in "runs-on" tag in the yml, the build goes through for me for the same configuration as yours along with cosign and docker-outside-of-docker for both amd64 and arm64. So the problem could be with this nodejs-dind unless its a custom image locally created. With Regards, |
Thanks for your very detailed answer @Kaniska244. Much appreciated! The image I am using is the one from the official gitea act runner repo (an alternative to github runner): https://gitea.com/gitea/act_runner/src/branch/main/Dockerfile I built multi-architecture docker images with the aforementioned nodejs-dind image by gitea. That's why I thought it might be an issue with the devcontainers cli or the devcontainer features used in my devcontainer.json that make my multi-arch devcontainer image build fail. If you have time, feel free to take a look into the gitea image. I am afraid, I will not figure out what is wrong with it. |
I just figured out that I get the same error when building with devcontainers cli. |
I just enabled the multi-platform build feature in my ci/cd pipeline which runs on x86. I encountered an
exec format error
during a feature layer build as follows:My github actions workflow is configured as follows:
devcontainer.json:
Dockerfile:
Has anybody an idea why this might happen? I would expect qemu to hook into the execution of
install.sh
above. So no idea what is going on there.The text was updated successfully, but these errors were encountered: