Open KaiserKarel opened 1 year ago
Either
auto-allocate-uids
, but that's going to need some experimentation. Configuring the container engine to use a socket and different config file locations (not /etc
) seems like non-trivial work.So the path of least resistance is to use NixOS VM tests. That's not really checkPhase
, but at least you'll test reproducibly in Nix. You'll need a linux machine with "KVM" virtualization, e.g. local hardware, bare metal server, or a cloud with nested virtualization support. If that's a problem, playing around with auto uid allocation is the only way.
@KaiserKarel how about Kind?
@Leon-Africa such a tool needs a container runtime to work inside the Nix sandbox, just like arion would need.
@KaiserKarel I've updated my answer with a link to a test that tests the arion examples in this repo. It runs in the sandbox and requires kvm virtualization support.
I'd like to use arion in the checkPhase. Is there an example on doing so? Useful in e2e tests.