-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Dockerfile and
opam
metadata for convenient packaging
The `opam` metadata permits the system to be installed via the [OPAM](https://opam.ocaml.org) source manager. The Dockerfile allows the installation of the compiler without having to install all the dependencies locally. ``` docker run -v `pwd`/tests:/src motto -q --parser_test_file flick_code/types_process.cp ``` Signed-off-by: Anil Madhavapeddy <[email protected]>
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ocaml/opam:alpine | ||
COPY . /home/opam/src | ||
RUN sudo chown -R opam /home/opam/src | ||
WORKDIR /home/opam/src | ||
RUN opam pin add -n motto /home/opam/src | ||
RUN opam depext -uy --noninteractive motto | ||
RUN opam install -j 2 -v -y motto | ||
VOLUME /src | ||
WORKDIR /src | ||
ENTRYPOINT ["opam","config","exec","--","motto"] |
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,3 @@ | ||
bin: [ | ||
"?_build/motto.byte" {"motto"} | ||
] |
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,21 @@ | ||
opam-version: "1.2" | ||
maintainer: "Nik Sultana" | ||
authors: [ | ||
"Richard G. Clegg" | ||
"Masoud Koleini" | ||
"Matteo Migliavacca" | ||
"Nik Sultana" | ||
] | ||
homepage: "https://github.com/NaaS/motto" | ||
dev-repo: "https://github.com/NaaS/motto.git" | ||
bug-reports: "https://github.com/NaaS/motto/issues" | ||
license: "Apache2" | ||
build: ["./build.sh"] | ||
install: [] | ||
remove: [] | ||
depends: [ | ||
"ocamlfind" {build} | ||
"ocamlbuild" {build} | ||
"menhir" | ||
] | ||
available: [ocaml-version >= "4.01.0"] |