Dockerfile 3.25 KB
Newer Older
Theo Steininger's avatar
Theo Steininger committed
1
FROM ubuntu:latest
2

Theo Steininger's avatar
Theo Steininger committed
3
4
5
6
7
RUN apt-get update
RUN apt-get install -y build-essential python python-pip python-dev git gfortran autoconf gsl-bin libgsl-dev wget unzip

RUN pip install numpy scipy cython astropy ipython
 
8
9
10
11
12
13
14
15
16
17
18
19
RUN mkdir /home/Downloads
WORKDIR /home/Downloads

# CFITSIO
RUN wget http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio_latest.tar.gz && tar xzf cfitsio_latest.tar.gz
WORKDIR cfitsio
RUN ./configure --prefix=/usr/local/ && make && make install 
WORKDIR ..

#FFTW
RUN wget http://www.fftw.org/fftw-3.3.5.tar.gz && tar xzf fftw-3.3.5.tar.gz
WORKDIR fftw-3.3.5
Theo Steininger's avatar
Theo Steininger committed
20
RUN ./configure --enable-threads --enable-openmp --enable-shared --prefix=/usr/local/ && make && make install
21
22
23
WORKDIR ..

#GSL
24
RUN wget http://nl.mirror.babylon.network/gnu/gsl/gsl-2.3.tar.gz && tar xzf gsl-2.3.tar.gz
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
WORKDIR gsl-2.3
RUN ./configure --enable-shared --prefix=/usr/local/ && make && make install
WORKDIR ..
ENV LD_LIBRARY_PATH=/usr/local/lib

#HEALPIX
RUN wget http://downloads.sourceforge.net/project/healpix/Healpix_3.31/Healpix_3.31_2016Aug26.tar.gz && tar xzf Healpix_3.31_2016Aug26.tar.gz 
WORKDIR Healpix_3.31
COPY healpy_config healpy_config
RUN  ./configure < healpy_config && make 
WORKDIR ..
#RUN [ -r /root/.healpix/3_31_Linux/config ] && . /root/.healpix/3_31_Linux/config
ENV HEALPIX_TARGET optimized_gcc 
ENV HEALPIX /home/Downloads/Healpix_3.31

Theo Steininger's avatar
Theo Steininger committed
40
41
42
#healpy
RUN pip install healpy 

43
#Hammurabi
44
45
46
47
48
49
# RUN wget https://sourceforge.net/code-snapshots/svn/h/ha/hammurabicode/code/hammurabicode-code-41-trunk.zip
# RUN unzip  hammurabicode-code-41-trunk.zip
# WORKDIR hammurabicode-code-41-trunk
RUN wget https://sourceforge.net/code-snapshots/svn/h/ha/hammurabicode/code/hammurabicode-code-52-trunk.zip
RUN unzip  hammurabicode-code-52-trunk.zip
WORKDIR hammurabicode-code-52-trunk
50
51
52
53
54
55
56
57
58
59
60
COPY hammurabi_Makefile Makefile
RUN [ -r /root/.healpix/3_31_Linux/config ] && . /root/.healpix/3_31_Linux/config && make hammurabi && make clean
WORKDIR ..

#(Py)MultiNest
RUN apt-get update && apt-get install -y libblas3 libblas-dev \
					 liblapack3 liblapack-dev \
					 libatlas3-base libatlas-dev \
					 cmake \
					 build-essential \
					 git \
Theo Steininger's avatar
Theo Steininger committed
61
62
					 gfortran\
					 python-tk
63
64
65
66
67
68
69
70
71
72
#RUN apt-get install -y libopenmpi-dev openmpi-bin openmpi-doc
RUN pip install numpy scipy matplotlib progressbar ipython

RUN git clone https://github.com/JohannesBuchner/MultiNest.git
WORKDIR MultiNest/build
RUN cmake .. && make && make install
WORKDIR ../..

RUN git clone https://github.com/JohannesBuchner/PyMultiNest.git
WORKDIR PyMultiNest
73
RUN python setup.py install
74
75
WORKDIR ..

Theo Steininger's avatar
Theo Steininger committed
76
#mpi4py
77
RUN apt-get install -y libopenmpi-dev openmpi-bin openmpi-doc
Theo Steininger's avatar
Theo Steininger committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
RUN pip install mpi4py 

#hdf5
RUN apt-get install -y libhdf5-10 libhdf5-dev libhdf5-openmpi-10 libhdf5-openmpi-dev hdf5-tools

#h5py
RUN wget https://api.github.com/repos/h5py/h5py/tags -O - | grep tarball_url | grep -v rc | head -n 1 | cut -d '"' -f 4 | wget -i - -O h5py.tar.gz
RUN mkdir h5py
RUN tar xzf h5py.tar.gz -C h5py --strip-components=1
WORKDIR h5py
ENV CC=mpicc 
ENV HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi 
RUN python setup.py configure --mpi 
RUN python setup.py build 
RUN python setup.py install 
WORKDIR ..
94

Theo Steininger's avatar
Theo Steininger committed
95
#NIFTy
96
97
RUN git clone https://gitlab.mpcdf.mpg.de/ift/NIFTy.git -b master
WORKDIR NIFTy
98
RUN python setup.py install
99
100
WORKDIR ..

101
102
#hampy
RUN pip install jupyter pandas
103
104
105