-
Notifications
You must be signed in to change notification settings - Fork 271
Latest arm/v7 docker image includes wrong arch plugin #239
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
Comments
Maybe it's how about replace this: CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin to: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin If it's right, I'd like to make a PR to fix it. |
I rebuilt
|
Moves the ARCH build argument after the first FROM so it has the proper value. (https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact) Adds the GOARM=7 option to the armv7 GO build. Fixes kubernetes-csi#239
Thank you for the fast reply! I pulled the latest tag again, but didn't see a change in the layer hash. I might be pulling from the wrong mirror? So I did have some time to try and dig a bit deeper as well, first started compiling the binary and trying it out on the rpi directly. Building with or without Then I tried to cross compile the docker image, and that's where I ran into some trouble..
When building for all architectures this step does succeed.
The Looking at the cause it seem this is because the Placing the
I'll create a PR that combines the |
I initially just moved the |
Uh oh!
There was an error while loading. Please reload this page.
What happened:
Starting the latest container build on an rpi4 exits with
wrong exec format error
;What you expected to happen:
The image to start successfully.
How to reproduce it:
Start the image on an arm v7 target (RPI 4)
Anything else we need to know?:
The downloaded image is for the correct architecture
Starting the image with
/bin/sh
as the entrypoint also works, it's just the nfsplugin that seems to have been compiled for another architecture.Environment:
kubectl version
): /Raspbian GNU/Linux 10 (buster)
uname -a
):Linux rpi4 5.10.49-v7l+ #1436 SMP Wed Jul 14 14:18:38 BST 2021 armv7l GNU/Linux
The text was updated successfully, but these errors were encountered: