Skip to content

Commit 9d009d9

Browse files
committed
add dockerfiles
1 parent 159a02a commit 9d009d9

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ This repo includes artifacts for "Live Pattern Matching with Typed Holes". Speci
1010

1111
- Assuming `opam` is installed, run `$ ./build` under `incon-sat` will build the project and check the tests.
1212

13+
### Docker
14+
Alternatively, you may use [Docker](https://docs.docker.com/get-docker/). Note: building dockers may take a while.
15+
16+
- Build and run Agda mechanization
17+
```
18+
$ docker build -t pattern-agda agda-mechanization
19+
$ docker run pattern-agda # will check proof
20+
```
21+
- Build and run Exhaustiveness and Redundancy Checker
22+
```
23+
$ docker build -t pattern-incon agda-mechanization
24+
$ docker run -it pattern-incon # will invoke OCaml toplevel
25+
```
26+
1327
Please see the README in each folder for detailed instructions.

agda-mechanization/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from haskell:8.4.3
2+
run cabal update
3+
run cabal install alex happy
4+
run cabal install Agda-2.6.2
5+
copy . .
6+
cmd ["agda" , "-v", "2" , "all.agda"]

incon-sat/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_build/
2+
.merlin

incon-sat/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from ocaml/opam:debian-10-ocaml-4.12
2+
run sudo apt install -y python3 libgmp-dev
3+
run opam install --yes dune utop ocamlformat z3 ppx_inline_test
4+
copy . .
5+
env PATH=/home/opam/.opam/4.12/bin:$PATH
6+
run dune build @runtest
7+
cmd dune utop src
8+
9+

incon-sat/build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
OCAML_VERSION=4.12.0
23
if ! command -v opam &> /dev/null
34
then

0 commit comments

Comments
 (0)