Skip to content

Commit

Permalink
experimental dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Mar 30, 2016
1 parent 1c1a017 commit 37b56d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ FROM ocaml/opam
RUN opam pin add -n ocl-reporter https://github.com/ocamllabs/ocl-reporter.git
RUN opam depext -ui ocl-reporter
RUN opam install -j 2 -y -v ocl-reporter
RUN mkdir /home/opam/src
CMD ["sh","-c","ocl-reporter && make www"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ more general purpose reporting tool for other projects too.
* A cron job runs every hour on `cron-serv0.cl.cam.ac.uk` to sync the
contents of `pages/` with the live directory. That server doesnt
run any code, so it just runs the `make cron` target to rsync files.

## Docker build

```
docker build -t ocl-reporter .
docker run -v `pwd`:/home/opam/src
```

0 comments on commit 37b56d5

Please sign in to comment.