Unverified Commit 7a7d5c8f authored by Vaibhav Sagar's avatar Vaibhav Sagar Committed by GitHub

Merge pull request #1153 from ad-si/patch-1

Extend section about Docker usage
parents 6063c58c 204f2e1d
......@@ -126,6 +126,35 @@ docker build -t ihaskell:latest .
docker run --rm -it -p8888:8888 ihaskell:latest
```
Or use the continously updated Docker image
[on Docker Hub](https://hub.docker.com/r/gibiansky/ihaskell).
```sh
docker run --rm -p 8888:8888 gibiansky/ihaskell
```
In order to mount your own local files into the Docker container
use following command:
```sh
docker run --rm -p 8888:8888 -v "$PWD":/home/jovyan/work gibiansky/ihaskell
```
Be aware that the directory you're mounting must contain
a `stack.yaml` file.
A simple version would be:
```yaml
resolver: lts-14.23
packages: []
```
It's recommended to use the same LTS version as the iHaskell image is using itself
(as can be seen in [its stack.yaml](./stack.yaml)).
This guarantees that stack doesn't have to first perform
a lengthy installation of GHC before running your notebook.
## Stack and Docker
IHaskell, being a Jupyter kernel, has a tall pile of compile-time and run-time
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment