Dockerfile 1.03 KB
Newer Older
Jait Dixit's avatar
Jait Dixit committed
1
2
3
4
5
6
FROM ubuntu:latest

# dependencies via apt
RUN \
    apt-get update && \
    apt-get install -y build-essential python python-pip python-dev git \
7
    autoconf gsl-bin libgsl-dev openmpi-bin wget \
Jait Dixit's avatar
Jait Dixit committed
8
9
10
    libopenmpi-dev libatlas-base-dev libfftw3-bin libfftw3-dev \
    libfftw3-double3 libfftw3-long3 libfftw3-mpi-dev libfftw3-mpi3 \
    libfftw3-quad3 libfftw3-single3 libhdf5-10 libhdf5-dev \
11
    libhdf5-openmpi-10 libhdf5-openmpi-dev hdf5-tools
Jait Dixit's avatar
Jait Dixit committed
12
13
14

# python dependencies
ADD ci/requirements.txt /tmp/requirements.txt
15
RUN pip install --upgrade -r /tmp/requirements.txt
Jait Dixit's avatar
Jait Dixit committed
16

17
# install pyHealpix, pyfftw and h5py
18
19
ADD ci/install_pyHealpix.sh /tmp/install_pyHealpix.sh
RUN cd /tmp && chmod +x install_pyHealpix.sh && ./install_pyHealpix.sh
20
21
22
23
ADD ci/install_pyfftw.sh /tmp/install_pyfftw.sh
RUN cd /tmp && chmod +x install_pyfftw.sh && ./install_pyfftw.sh
ADD ci/install_h5py.sh /tmp/install_h5py.sh
RUN cd /tmp && chmod +x install_h5py.sh && ./install_h5py.sh
Jait Dixit's avatar
Jait Dixit committed
24
25
26
27
28
29
30

# copy sources and install nifty
COPY . /tmp/NIFTy
RUN pip install /tmp/NIFTy

# Cleanup
RUN rm -r /tmp/*