Commit e015e25f authored by frozar's avatar frozar
Browse files

[DOCKER] Add a first example Dockerfile script of LMGC90 (it runs an example).

parent b471d4cd
# Docker to get the latest release of LMGC90
FROM ubuntu:14.04
MAINTAINER Fabien Rozar <>
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 PYTHONPATH /root/wk/lmgc90_user/build:$PYTHONPATH
# Make working directory
RUN mkdir ~/wk
# Download the source of LMGC90
RUN cd ~/wk && git clone
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 > /dev/null
# Interactive run
## docker run -i -t rozar/lmgc90:v0
# Building command
## docker build -t rozar/lmgc90:v0 .
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment