Skip to content

Commit

Permalink
Docker artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusf committed May 27, 2024
1 parent c1b19dc commit c920936
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

FROM ocaml/opam:ubuntu-23.04-ocaml-5.1

RUN opam update

RUN git clone https://github.com/songyahui/AlgebraicEffect.git

WORKDIR AlgebraicEffect

RUN sudo apt-get update -y && sudo apt-get install -y libgmp-dev pkg-config python3

RUN opam install dune menhir ppx_deriving ppx_expect unionFind visitors z3

RUN sudo apt-get install -y libcairo2-dev libexpat1-dev libgtk-3-dev libgtksourceview-3.0-dev
RUN opam install why3-ide

RUN eval $(opam env) && dune build @install
ENV PATH $PWD:$PATH
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ dune exec parsing/hip.exe src/demo/8_schduler.ml
- [Development](docs/development.md)
- [Why3](docs/why3.md)
- [How the web build works](docs/web.md)
- [Docker packaging](docs/docker.md)

7 changes: 7 additions & 0 deletions docs/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# Docker packaging

```sh
docker build -t heifer-icfp24 -f Dockerfile . --progress=plain
docker run -it heifer-icfp24 bash
```
4 changes: 4 additions & 0 deletions heifer
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

set -x
dune exec parsing/hip.exe "$@"

0 comments on commit c920936

Please sign in to comment.