-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ubuntu binary docker release and update script (#132)
- Loading branch information
1 parent
67db719
commit 030470f
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM ocaml/opam2:ubuntu-18.04-opam | ||
|
||
WORKDIR /home/comby | ||
|
||
RUN sudo apt-get install -y \ | ||
libpcre3-dev \ | ||
pkg-config \ | ||
zlib1g-dev \ | ||
m4 \ | ||
libgmp-dev | ||
|
||
RUN opam init --no-setup --disable-sandboxing --compiler=4.09.0 | ||
|
||
COPY Makefile /home/comby/ | ||
COPY comby.opam /home/comby/ | ||
COPY dune /home/comby/ | ||
COPY docs /home/comby/docs | ||
COPY src /home/comby/src | ||
COPY lib /home/comby/lib | ||
COPY test /home/comby/test | ||
COPY push-coverage-report.sh /home/comby/ | ||
|
||
RUN sudo chown -R $(whoami) /home/comby | ||
|
||
RUN eval $(opam env) && opam install . --deps-only -y | ||
# Next command must be a single run command for $(opam env) to take effect. | ||
RUN eval $(opam env) && make && make test && make clean && make release | ||
|
||
# The binary is now available in /home/comby/_build/default/src/main.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters