tazjin / nixery

Container registry which transparently builds images using the Nix package manager. Canonical repository is https://cs.tvl.fyi/depot/-/tree/tools/nixery
https://nixery.dev/
Apache License 2.0
1.83k stars 69 forks source link

feat: add /tmp #148

Closed jpetazzo closed 2 years ago

jpetazzo commented 2 years ago

Hi!

Some programs fail when /tmp doesn't exist:

It's trivial to address (just mkdir /tmp, or set TMPDIR, or mount an ephemeral volume on /tmp) but it would also be nice if stuff like docker run nixery.dev/shell/terraform worked out of the box.

Creating /tmp seems super easy; there might be a better place to do it but this one seemed simple enough.

This PR should really be just 1 line; but I updated the comments around it otherwise they wouldn't have quite the same meaning. I hope that's OK; let me know otherwise, happy to tweak/rephrase things!

jpetazzo commented 2 years ago

Related to #133.

(And sorry for the spam with the force pushes; git is hard😅)