-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
62 lines (54 loc) · 2.45 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:latest
MAINTAINER Jürgen Simon ([email protected])
RUN sudo apt-get -y update --fix-missing
RUN sudo apt-get -y upgrade
RUN sudo apt-get -y dist-upgrade
RUN sudo apt-get -y install software-properties-common
RUN sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
RUN sudo apt-get -y update
RUN sudo apt-get -y install git
RUN sudo apt-get -y install gcc
RUN sudo apt-get -y install g++
RUN sudo apt-get -y install libflann1.8 libflann-dev
RUN sudo apt-get -y install blitz++
# RUN sudo apt-get -y install shapelib
RUN sudo apt-get -y install libhdf5-7 libhdf5-dev
RUN sudo apt-get -y install netcdf-bin libnetcdf-dev libnetcdfc++4
RUN sudo apt-get -y install python python-pip
RUN sudo apt-get -y install python-netcdf
RUN pip install setuptools
RUN sudo apt-get -y install cmake
RUN sudo apt-get -y install zlib1g zlib1g-dev
RUN sudo apt-get -y install libboost1.55-all-dev
# Build NetCDF-CXX (always an extra bloody sausage with this package...)
RUN sudo apt-get -y install wget
RUN wget --quiet https://github.com/Unidata/netcdf-cxx4/archive/v4.2.1.tar.gz
RUN tar xvzf v4.2.1.tar.gz
RUN cd netcdf-cxx4-4.2.1 && ./configure && make install && cd ..
RUN rm -rf netcdf-cxx4-4.2.1 && rm v4.2.1.tar.gz
# Install python-netcdf4 from source
#RUN wget https://pypi.python.org/packages/source/n/netCDF4/netCDF4-1.2.3.1.tar.gz#md5=24fc0101c7c441709c230e76af611d53
#RUN tar xvzf netCDF4-1.2.3.1.tar.gz
#RUN cd netCDF4-1.2.3.1 && python setup.py build && python setup.py build && cd ..
#RUN rm -rf netCDF4*
# Visualisation
RUN pip install Cython
RUN pip install h5py
RUN pip install netcdf4
RUN sudo apt-get -y install gnuplot
RUN sudo apt-get -y install --fix-missing vtk6 libvtk6-dev
RUN wget --quiet http://portal.nersc.gov/project/visit/releases/2.10.0/visit2_10_0.linux-x86_64-rhel6-wmesa.tar.gz
RUN wget --quiet http://portal.nersc.gov/project/visit/releases/2.10.0/visit-install2_10_0
RUN chmod a+x visit-install2_10_0
RUN echo "1" | ./visit-install2_10_0 2.10.0 linux-x86_64-rhel6-wmesa /usr/local/visit
ENV VISIT_EXECUTABLE=/usr/local/visit/bin/visit
RUN rm -rf visit*
# Meanie3D
RUN git clone --depth=1 http://git.meteo.uni-bonn.de/git/meanie3d
RUN cd meanie3d && git submodule init && git submodule update radolan && cd ..
RUN cd meanie3d && cmake -DWITH_OPENMP=1 -DWITH_VTK=1 -DCMAKE_BUILD_TYPE=Release . && make install && cd ..
RUN rm -rf meanie3d
ENV LD_LIBRARY_PATH=/usr/local/lib
# Create data mount point
RUN mkdir /data
ENTRYPOINT ["/usr/local/bin/meanie3D"]