Skip to content
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

Update nomad v0.9.0 #3

Merged
merged 7 commits into from
Apr 15, 2019

Conversation

bltavares
Copy link
Contributor

Built on top of #2

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
Otherwise, we can't find the user/group nobody, which requires cgo
@nicholasjackson
Copy link
Owner

@bltavares thanks for this, will check this out in the morning. Thanks so much for the contribution

@nicholasjackson nicholasjackson merged commit 3a1d9e8 into nicholasjackson:master Apr 15, 2019
@nicholasjackson
Copy link
Owner

@bltavares thanks for this, just built and tested on my Pi Zero W. Nomad runs fine, not had a chance to test this as part of a server cluster yet but generally if the binary runs all is good.

I have uploaded binaries to the releases: https://github.com/nicholasjackson/nomad-arm6l/releases/tag/v0.9.0

@bltavares
Copy link
Contributor Author

@nicholasjackson Thanks for accepting the changeset. I've had a change to test the Redis deployment, but there is an error on how the pre-alloc step works with the cross-compiled binary.

I've opened #4 to track the error, but I'll only have time to look at this really later on. Meanwhile, this PR on Nomad itself produces working binaries: hashicorp/nomad#5525

I have precompiled packages available here: https://github.com/bltavares/nomad/releases/tag/v0.9.0-armel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants