Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM haskell:7.8

RUN cabal update && cabal install cabal-install

ENV PATH .cabal-sandbox/bin:$HOME/.cabal/bin:$PATH
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,35 @@ The project uses Stackage to maintain build stability

## Instructions

### Docker

Requirements:

* [docker](https://docs.docker.com/installation)
* [fig](http://www.fig.sh/install.html)

Build the Docker container:
```
fig up -d
```

Then fire up bash:
```
fig run dev bash
```

You can now run the next instructions to install, build and run tests inside the container. We mount the current directory as `/workspace` so that you only have to install once.

Additionally, if you want to use GHCi:
```
fig run dev
```

Or `cabal repl`:
```
fig run dev cabal repl
```

### To install:
```
cabal sandbox init
Expand Down
5 changes: 5 additions & 0 deletions fig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dev:
build: .
volumes:
- .:/workspace
working_dir: /workspace