-
Notifications
You must be signed in to change notification settings - Fork 791
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
Release official builds (Linux) #594
Comments
I have written a |
@TomSweeneyRedHat Could you look at this, at least have official containers with skopeo in them. |
Related to #432 |
@rhatdan ack, will do |
+1 for this |
I'd like to have binary distribution too. I already faced with the problem that
|
Yes — we can’t make a single “official Linux build” because various Lines are not binary compatible! (E.g. last time this was a different SONAME of We could, in principle, prepare different builds for various distributions, but at that point it seems more useful to actually provide / help maintain / link to native packages for those distributions. |
A simple solution is to statically compile the distributed binaries. Yes, it's not as safe (in terms of security updates) as dynamically linked binaries -- but it would solve this problem (and users who care about security should be using distribution packages anyway). |
I am fine with creating a static version, and we are going to be adding container images with skopeo inside of them similar to what we have done with buildah and a PR exists for Podman now. The issue with static skopeo is I believe certain features will need to be disabled (Devmapper support?) if static c libraries do not exists. |
Another option is to check if dynamically linked is available and then and only then - use functions from it. Unfortunately, I don't know if it is possible in Golang, but I am sure that this will work. |
@gecube It is possible (I wrote some patches for Docker that are now in containers/storage that do this for devicemapper) but it's very difficult and not worth the trouble. It has to be done the old-fashioned way with |
In Pop OS I couldn't find skopeo package. I tried installing skopeo with linuxbrew, but build fails
It fails even with PKG_CONFIG_PATH set to On the other hand building from latest source works:
Wish installing skopeo via linuxbrew worked across distros. |
FYI @lsm5 (in case it's not on your radar already) |
Could we reference CRI-O static build which utilize nix packaging? See https://github.com/cri-o/cri-o/blob/master/tutorials/setup.md#static-builds:
|
FWIW there are now official containers, courtesy of @TomSweeneyRedHat ; see #432 (comment) . |
For anyone else coming across this same issue, I have found a work around. Crane (https://github.com/google/go-containerregistry/blob/master/cmd/crane/doc/crane.md) offers a lot of the same functionality as skopeo, but has a binary release available as part of the tarballs at https://github.com/google/go-containerregistry/releases |
thanks @seandilda you just saved me after spending an entire day looking for such a solution! Crane is awesome and exactly what I was looking for. |
@seandilda thanks a lot, crane.Save(...) save me!! |
Can this project add official builds (against linux) to its release page? I was thinking something like OKD does (https://github.com/openshift/origin/releases). This would make it a lot easier to pull skopeo into a build container.
(I filed this in addition to #330 since #330 is focused on macOS binaries and I'm looking for linux builds here).
The text was updated successfully, but these errors were encountered: