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

Decide on and document some basic guarantees on Nixery containers #133

Open flokli opened 3 years ago

flokli commented 3 years ago

Spun out of https://github.com/google/nixery/pull/132#issuecomment-905520242

Right now we add cacert and iana-etc from nixpkgs into every image (see builder/builder.go).

We sometimes add a /usr/bin/env symlink (if coreutils is part of the container), should will become available in nixpkgs as dockerTools.usrBinEnv.

Maybe we also should add dockerTools.{binSh,fakeNss} too, to add /bin/sh, and workaround some annoying nss-related problems.

Related, we might want to set the SSL_CERT_FILE environment variable to pkgs.cacert.out}/etc/ssl/certs/ca-bundle.crt to fix https://github.com/google/nixery/issues/101.

Once we agree on this, we should document all this, so people know what they can expect from these containers.