Skip to content

Commit

Permalink
add Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
msakai committed Feb 11, 2021
1 parent fc10d24 commit ddeac96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ Binary distributions for Windows, Mac, and Linux, can be downloaded from [releas
3. `cd toysolver`
4. `cabal install`

### Docker image

The Docker images can be found at [dockerhub](https://hub.docker.com/repository/docker/msakai/toysolver).

To run `toysat` using Docker for solving `samples/pbs/normalized-j3025_1-sat.opb`:

```
docker run -it --rm -v `pwd`:/data msakai/toysolver toysat samples/pbs/normalized-j3025_1-sat.opb`
```

Usage
-----

Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM haskell:8.10.2
RUN cabal update && cabal install toysolver --flags="BuildToyFMF BuildSamplePrograms BuildMiscPrograms"
WORKDIR /data
CMD ["bash"]

0 comments on commit ddeac96

Please sign in to comment.