-
Notifications
You must be signed in to change notification settings - Fork 13
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
pkg(docker-engine): fix static build with latest changes #69
Conversation
CentOS 7 packaging is broken when building from master branch: https://github.com/docker/packaging/actions/runs/3865721363/jobs/6589383289#step:7:898
Looks related to moby/moby#44761 (moby/moby@3208dca). So it seems it now requires 4.12 kernel looking at the first appearence in |
Right, this is intentional. I would suggest simply compiling without Btrfs support as it's deprecated in CentOS (nee Red Hat) 7; this is what we plan to do in MCR/EE. There's no intention to backport to 20.10 so we don't take anything away from users. Alternatively, it shouldn't be too burdensome to host an image on Docker Hub or similar that carries the results of:
Then one could mount/copy those headers into the build environment of the CentOS 7 builder. However, I think given that it's very much on life-support in the distro itself means we should just skip building it, like we already do on 8+. |
Yes there is also http://elrepo.org/tiki/kernel-lt |
Ah, good find; I had not realized that ELRepo provides full userspace headers (as opposed to kernel headers in |
Yes will do here: packaging/pkg/docker-engine/scripts/pkg-rpm-build.sh Lines 70 to 73 in 425085b
Thanks for your feedback |
FWIW it works with:
|
@crazy-max how did you get it working for non-x86? Looks like the headers (even if they're "noarch") packages (or mirrors) are still x86; docker/docker-ce-packaging#810 (comment) |
I build without btrfs support in this PR and didn't try to install headers on non-x86 but it seems this repo don't support this arch unfortunately 😞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
4c7f8ed
to
f6809ac
Compare
follow-up moby/moby#44546