-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
110 additions
and
226 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 was deleted.
Oops, something went wrong.
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,30 @@ | ||
FROM ocaml/opam:archlinux-ocaml-5.1 | ||
|
||
##################### PREREQUISITES ######################## | ||
|
||
RUN sudo pacman -S --noconfirm base-devel wget zlib shapelib | ||
RUN sudo pacman -S --noconfirm lapack cblas lapacke openblas | ||
RUN opam install -y dune ocaml-compiler-libs ctypes alcotest utop conf-openblas dune-configurator stdio npy | ||
|
||
#################### Setup Env ####################### | ||
|
||
ENV OWLPATH /home/opam/owl | ||
ENV PATH /home/opam/.opam/${OCAML_VER}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH | ||
ENV CAML_LD_LIBRARY_PATH /root/.opam/${OCAML_VER}/lib/stublibs | ||
|
||
#################### INSTALL OWL ####################### | ||
|
||
RUN cd /home/opam && git clone https://github.com/owlbarn/owl.git | ||
|
||
RUN cd $OWLPATH \ | ||
&& eval $(opam env) \ | ||
&& make && make install | ||
|
||
############## SET UP DEFAULT CONTAINER VARS ############## | ||
|
||
RUN echo "#require \"owl-top\";; open Owl;;" >> /home/opam/.ocamlinit \ | ||
&& opam env >> /home/opam/.bashrc \ | ||
&& bash -c "source /home/opam/.bashrc" | ||
|
||
WORKDIR $OWLPATH | ||
ENTRYPOINT /bin/bash |
This file was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.