-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unset CGO_ENABLED for ARM builds #5337
Conversation
Nomad 0.9 uses libcontainer which requires cgo. Have you tested the |
@schmichael youre correct, this fails on 0.9+ |
Sad. Thanks for working on this and testing @myoung34 ! |
This commit provides a cross compilation Docker image which compiles the project using the same scripts as it is used on the remote machine. With the cross compilation image it is possible to test it locally. We introduced a new compiler on the build step, so we are capable of using `cgo` during compilation, as it was [reported] to be required for newer versions of Nomad. This has been tested running Docker from Mac, and sending the output to a Pi Zero W using `scp`. The binary starts up, but there were no further tests on how the scheduler behaves at this moment. This also has been tested compiling Nomad `0.8.7` and `master` (currently `0.9.0-dev`), using the `CGO_ENABLED` and the correct gcc `armv6l` compiler. [reported]: hashicorp/nomad#5337
This commit provides a cross compilation Docker image which compiles the project using the same scripts as it is used on the remote machine. With the cross compilation image it is possible to test it locally. We introduced a new compiler on the build step, so we are capable of using `cgo` during compilation, as it was [reported] to be required for newer versions of Nomad. This has been tested running Docker from Mac, and sending the output to a Pi Zero W using `scp`. The binary starts up, but there were no further tests on how the scheduler behaves at this moment. This also has been tested compiling Nomad `0.8.7` and `master` (currently `0.9.0-dev`), using the `CGO_ENABLED` and the correct gcc `armv6l` compiler. [reported]: hashicorp/nomad#5337
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This resolves #2517