From d62b0be79cb80d020a2354b3e09d451848e492a1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 14 Dec 2021 11:36:31 -0500 Subject: Finish and test dragons-analyze docker image --- Biz/Dragons/Analysis.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Biz/Dragons/Analysis.nix b/Biz/Dragons/Analysis.nix index cd8cd38..0896dbe 100644 --- a/Biz/Dragons/Analysis.nix +++ b/Biz/Dragons/Analysis.nix @@ -1,16 +1,20 @@ { bild ? import ../Bild.nix {} }: +# Run this like so: +# +# bild Biz/Dragons/Analysis.nix +# docker load < _/nix/Biz/Dragons/Analysis.nix +# docker run --volume $PWD:/src dragons-analyze dragons-analyze /src/.git + bild.image { name = "dragons-analyze"; tag = "latest"; - fromImage = null; fromImageName = null; fromImageTag = "latest"; - - contents = bild.ghc ./Analysis.hs; - - config = { - Cmd = [ "/bin/dragons-analyze" ]; - }; + contents = [ + bild.pkgs.git + (bild.ghc ./Analysis.hs) + ]; + config.Cmd = [ "/bin/dragons-analyze" ]; } -- cgit v1.2.3