diff options
author | Ben Sima <ben@bsima.me> | 2021-12-14 11:36:31 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-12-14 11:36:31 -0500 |
commit | d62b0be79cb80d020a2354b3e09d451848e492a1 (patch) | |
tree | d8993346371f71f93c83634cbdfa5dff77d123f1 /Biz/Dragons | |
parent | 58d00038a26efad6f103f020410d11f9c114899d (diff) |
Finish and test dragons-analyze docker image
Diffstat (limited to 'Biz/Dragons')
-rw-r--r-- | Biz/Dragons/Analysis.nix | 18 |
1 files 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" ]; } |