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
cri-o, buildah: add wrappers #86637
cri-o, buildah: add wrappers #86637
Conversation
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.
LGTM
Done. |
|
||
[crio.runtime] | ||
conmon = "${pkgs.conmon}/bin/conmon" |
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.
@saschagrunert Apologies for asking you to keep this in #86290 and then removing it here anyway, the wrapper end up being the best approach.
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.
Yeah no worries ❤️
I merged #86290 so this should be good to go? |
Yes, thanks @Profpatsch |
mkdir -p $out/bin | ||
ln -s ${buildah-unwrapped}/share $out/share | ||
makeWrapper ${buildah-unwrapped}/bin/buildah $out/bin/buildah \ | ||
--prefix PATH : ${binPath} |
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.
iirc you don’t need a separate derivation to wrap the executable, you can just run makeWrapper
in the postInstall
phase of the original derivation.
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.
This and the top-level -unwrapped
are duplicated from podman
.
For now I'd like to keep them as duplicates so they are easier to merge into one wrapper. I'm looking at doing that after adding some tests.
@@ -1369,7 +1369,8 @@ in | |||
|
|||
btfs = callPackage ../os-specific/linux/btfs { }; | |||
|
|||
buildah = callPackage ../development/tools/buildah { }; | |||
buildah = callPackage ../development/tools/buildah/wrapper.nix { }; | |||
buildah-unwrapped = callPackage ../development/tools/buildah { }; |
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.
Do we need to expose the unwrapped version?
, utillinux # nsenter | ||
, cni-plugins # not added to path | ||
, iptables | ||
}: |
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.
We still need socat
for port forwarding purposes.
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.
Fixed.
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.
LGTM
Opened as a draft, waiting for other changes to land in master.Having a wrapper might be preferred but for now I'd rather that we merge this and reevaluate if we end up adding more packages.Ended up being easier to add the wrapper.
cc @NixOS/podman