nicholasjackson / nomad-arm6l

Build of Nomad for Arm6l such as the Raspberry Pi Zero
MIT License
8 stars 6 forks source link

Issues scheduling jobs #4

Open bltavares opened 5 years ago

bltavares commented 5 years ago

The suggested project, unfortunately, produces a Nomad binary which does not work when scheduling tasks. It fails due to to some cross-compilation issues I haven't been able to resolve yet.

It's related to how os/user deals with cgo and cross-compilation. It fails as nomad can't locate the uid of the user nobody when pre-allocating the storage for the process.

The changes introduced on https://github.com/hashicorp/nomad/pull/5525 does produce a binary which schedules containers properly with os/user working. We could back-port the specific changes and avoid goreleaser to reduce the different between the in-tree build process and others.

nicholasjackson commented 5 years ago

Originally I was compiling on an Arm-based server in Scaleway, I am guessing the Docker build is linking against the wrong OS library. Let me run a build on my Pi and upload that for the time being.

bltavares commented 5 years ago

In that case, your release could work. I've tested the Docket binary, which didn't work.

Let me test your release. (Most likely next week)

Em 16 de abril de 2019 06:52:39 BRT, Nicholas Jackson notifications@github.com escreveu:

Originally I was compiling on an Arm-based server in Scaleway, I am guessing the Docker build is linking against the wrong OS library. Let me run a build on my Pi and upload that for the time being.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/nicholasjackson/nomad-arm6l/issues/4#issuecomment-483592118