Skip to content

Instantly share code, notes, and snippets.

@jamal919
Created September 26, 2021 16:42
Show Gist options
  • Save jamal919/a10c96d98496d21c060543f4224f5ad1 to your computer and use it in GitHub Desktop.
Save jamal919/a10c96d98496d21c060543f4224f5ad1 to your computer and use it in GitHub Desktop.
Comodo-Tools Docker
FROM ubuntu:18.04
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
RUN apt-get update\
&& apt-get install -y mercurial wget make automake cmake g++ gfortran pkg-config python hwloc\
&& apt-get install -y liblapack-dev libsuitesparse-dev libopenmpi-dev\
&& apt-get install -y libscotch-dev petsc-dev libmetis-dev libarpack2-dev libparpack2-dev\
&& apt-get install -y libnetcdf-dev libshp-dev flex bison libproj-dev libgsl-dev
RUN mkdir /comodo /comodo/poc-solvers /comodo/tools\
&& cd /comodo/poc-solvers\
&& wget ftp://ftp.legos.obs-mip.fr/pub/ecola/poc-solvers/poc-solvers.hg_bundle\
&& hg init\
&& hg unbundle poc-solvers.hg_bundle\
&& hg up 387\
&& ./INSTALL.sh -1 --redo -DMPI=on -DPETSC=off\
&& cd /comodo/tools\
&& wget ftp://ftp.legos.obs-mip.fr/pub/ecola/tools/tools.hg_bundle\
&& hg init\
&& hg unbundle tools.hg_bundle\
&& hg up 3873\
&& autoreconf -si\
&& ./configure\
&& make clean\
&& make -k && make -k && make -k\
&& make install
WORKDIR /mnt
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment