pdtpartners / nix-snapshotter

Brings native understanding of Nix packages to containerd
MIT License
532 stars 15 forks source link

Provide Dockerfile target for pre-cached vm & vm-rootless #122

Closed elpdt852 closed 6 months ago

elpdt852 commented 6 months ago

This will let users without Nix to try out nix-snapshotter with just:

# Entrypoint launches directly into `.#vm` QEMU
docker run --rm -it ghcr.io/pdtpartners/nix-snapshotter

# Entrypoint launches directly into `.#vm-rootless` QEMU
docker run --rm -it ghcr.io/pdtpartners/nix-snapshotter:rootless

I'm not adding a CD target atm because this requires a docker builder, and a rather long build without caching capability. Though not impossible because I believe buildkit allows you to store caches in an OCI image, so we may be able to push it to ghcr.io.

elpdt852 commented 6 months ago

In some shells like zsh in certain modes, the # means something special to the shell so it actually errors. Wrapping it in quotes ensures it works across all shells.

See: https://github.com/NixOS/nix/issues/4686

RobbieBuxton commented 6 months ago

In some shells like zsh in certain modes, the # means something special to the shell so it actually errors. Wrapping it in quotes ensures it works across all shells.

See: NixOS/nix#4686

Makes sense, cheers!