{"repo":"nlewo/nix2container","free":true,"listed":false,"github":"https://github.com/nlewo/nix2container","clone":"git clone https://github.com/nlewo/nix2container.git","description":"An archive-less dockerTools.buildImage implementation","language":"Go","stars":898,"topics":["nix","nixos","docker","containers","skopeo","oci"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"nix2container nix2container provides an efficient container development workflow with images built by Nix: it doesn't write tarballs to the Nix store and allows to skip already pushed layers (without having to rebuild them). This is based on ideas developed in this blog post. Getting started This image can then be loaded into Docker with More Examples To load and run the bash example image into Podman: - bash : Bash in /bin/ - fromImage : Alpine as base image - fromImageManifest : Alpine as base image, from a stored manifest.json . - nginx - nonReproducible : with a non reproducible store path :/ - openbar : set permissions on files (without root nor VM) - uwsgi : isolate dependencies in layers - layered : build a layered image as described in this blog post Functions documentation nix2container.buildImage Function arguments are: - name (required): the name of the image. - tag (defaults to the image output hash): the tag of the image. - config (defaults to {} ): an attribute set describing an image configuration as defined in the OCI image specification. - copyToRoot (defaults to null ): a derivation (or list of derivations) copied in the image root directory (store path prefixes /nix/store/hash-path are removed, in order to relocate them at the image / ). pkgs.buildEnv can be used to build a derivation which has to be copied to the image root. For instance, to get bash and coreutils in the image /bin : - fromImage (defaults to null ): an image that is used as base image of t","default_branch":null,"files":null,"tree":[],"storefront":"/r/nlewo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nlewo/nix2container/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}