Skip to content

Instantly share code, notes, and snippets.

@mqu
Created October 18, 2017 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mqu/403cf77e0b0688c421c6bb3c69e9ea6e to your computer and use it in GitHub Desktop.
Save mqu/403cf77e0b0688c421c6bb3c69e9ea6e to your computer and use it in GitHub Desktop.
Yadicts - Dockerfile preliminary snapshot for Yadicts project.
FROM ubuntu:trusty
MAINTAINER mqu@foobar.local
# Yadics Dockerfile : http://yadics.univ-lille1.fr/wordpress/?page_id=57
# see : https://linuxfr.org/forums/linux-debian-ubuntu/posts/empaqueter-une-appli-dans-docker
# download url
ARG url=http://yadics.univ-lille1.fr/wordpress/wp-content/plugins/filedownload/download.php/?path=http://yadics.univ-lille1.fr/wordpress/wp-content/uploads/2015/05/YaDICs_Project.zip&type=&check=&referer=/wordpress/?page_id=2
# dependencies : http://yadics.univ-lille1.fr/wordpress/?page_id=57
RUN set -x ; \
apt-get update -q ; \
apt-get install -qy \
build-essential \
cmake \
gcc-4.9-base \
gfortran \
imagemagick \
ipython \
lib64gomp1 libatlas3-base libatlas-dev liblapack-dev libc6 libc6-amd64 libfftw3-dev libgcc1 \
libgraphicsmagick++1-dev libnetcdf-dev \
libnetcdf-c++4 libnetcdf-c++4-dev libnetcdf-cxx-legacy-dev libtiff5-dev \
ncview netcdf-bin python-matplotlib python-netcdf4 python-numpy python-scipy dvipng \
texlive-full ghostscript ghostscript
# téléchargement
RUN set -x ; \
echo "FIXME please !" ; \
wget -O yadicts.zip $url \
exit 1
# fabrication du binaire :
RUN set -x ; \
cd ~/YaDICs_Project/YaDICs_V04.14.a/build/ \
cmake ../ \
make
# et la suite :
RUN set -x ; \
ncgen3 -o ~/parameter.nc ~/parameter.h \
~/YaDICs_Project/YaDICs_V04.14.a/build/YaDICs -h ~/parameter.nc -o path-of-output-results
# -v (if verbose mode is required)
#
RUN script-d-install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment