nlewo / nix2container

An archive-less dockerTools.buildImage implementation
Apache License 2.0
501 stars 45 forks source link

feat: oci image linking to store host nix/store path #109

Open dzmitry-lahoda opened 8 months ago

dzmitry-lahoda commented 8 months ago

can instead of copying files, just make oci image to link to host, assuming /nix/store is mounted into image?

so can make building oci images very fast for dev purposes.

nlewo commented 8 months ago

Hello,

That's currently not possible to do that with nix2container and i think this feature would require some changes around this part.

Did you take a look to arion?

dzmitry-lahoda commented 8 months ago

looked, arion does not seem to support such feature.

dzmitry-lahoda commented 8 months ago

this claimed support, but i have not found how easy to build image

https://github.com/pdtpartners/nix-snapshotter

dzmitry-lahoda commented 8 months ago

this project seems closest to oci image, basically instead of ad hoc json it could may be generate oci spec json directly)