Skip to content

Latest commit

 

History

History

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Docker

The following is all you need to generate one docker image per executable:

# docker.nix
let

    release = import ./release.nix;

    inherit (import ../lib/utils.nix) make-test mapExecutables;

in

    mapExecutables (pkg: executable: release.dockerTools.buildImage {
        name = "${executable}";
        config.Cmd = [ "${(release.haskell.lib.justStaticExecutables pkg)}/bin/${executable}" ];
    })

Here we're simply reusing the code from ../nix-tests.

TODO releases?

In the following chapter we spend some time making sure that your less nix-invested colleagues have a good experience too.