Dockerfile 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# Docker to get the latest release of LMGC90
FROM ubuntu:14.04
MAINTAINER Fabien Rozar <fabien.rozar@umontpellier.fr>

RUN apt-get update 

# Building requierement
RUN apt-get install -y git python cmake gcc g++ gfortran liblapack-dev swig python-dev python-numpy

# Visualizing requierement
## RUN apt-get install -y python-vtk paraview

# Building documention requierement
## RUN apt-get install -y doxygen graphviz python-numpydoc texlive-latex-extra dvipng imagemagick

# Update the environment
ENV GIT_SSL_NO_VERIFY True
ENV PYTHONPATH /root/wk/lmgc90_user/build:$PYTHONPATH

# Make working directory
RUN mkdir ~/wk

# Download the source of LMGC90
RUN cd ~/wk && git clone https://git-xen.lmgc.univ-montp2.fr/lmgc90/lmgc90_user.git 
RUN mkdir ~/wk/lmgc90_user/build && cd ~/wk/lmgc90_user/build && cmake ../src && make -j4

# Run an example
RUN cd ~/wk/lmgc90_user/examples/mecaMAILx_2D/Rocking && python all.py > /dev/null

# Interactive run 
## docker run -i -t rozar/lmgc90:v0 

# Building command
## docker build -t rozar/lmgc90:v0 .