diff --git a/README.md b/README.md index 58d7c4f..147a6ef 100644 --- a/README.md +++ b/README.md @@ -72,18 +72,17 @@ working, the following commands will compile and run the tests. ``` git clone --recursive https://github.com/tensorflow/haskell.git tensorflow-haskell cd tensorflow-haskell -IMAGE_NAME=tensorflow/haskell:2.3.0 -docker build -t $IMAGE_NAME docker +docker build -t tensorflow/haskell:2.3.0 docker # TODO: move the setup step to the docker script. -stack --docker --docker-image=$IMAGE_NAME setup -stack --docker --docker-image=$IMAGE_NAME test +stack --docker setup +stack --docker test ``` There is also a demo application: ``` cd tensorflow-mnist -stack --docker --docker-image=$IMAGE_NAME build --exec Main +stack --docker build --exec Main ``` ### Stack + Docker + GPU @@ -93,6 +92,9 @@ If you want to use GPU you can do: ``` IMAGE_NAME=tensorflow/haskell:2.3.0-gpu docker build -t $IMAGE_NAME docker/gpu +# TODO: move the setup step to the docker script. +stack --docker --docker-image=$IMAGE_NAME setup +stack --docker --docker-image=$IMAGE_NAME test ``` ### Using nvidia-docker version 2 diff --git a/stack.yaml b/stack.yaml index ad20380..4c54c4a 100644 --- a/stack.yaml +++ b/stack.yaml @@ -25,6 +25,10 @@ extra-lib-dirs: extra-include-dirs: - /usr/local/include +docker: + enable: false + image: tensorflow/haskell:2.3.0 + nix: enable: false # nixos-21.05 with libtensorflow 2.3.0