Dockerfile 1023 Bytes
Newer Older
Jait Dixit's avatar
Jait Dixit committed
1 2 3
FROM ubuntu:latest

# dependencies via apt
4 5 6 7
RUN apt-get update 
ADD ci/install_basics.sh /tmp/install_basics.sh
RUN cd /tmp && chmod +x install_basics.sh && ./install_basics.sh

Jait Dixit's avatar
Jait Dixit committed
8 9 10

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

13 14 15 16
ADD ci/requirements_extras.txt /tmp/requirements_extras.txt
RUN pip install --upgrade -r /tmp/requirements_extras.txt


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_mpi4py.sh /tmp/install_mpi4py.sh
RUN cd /tmp && chmod +x install_mpi4py.sh && ./install_mpi4py.sh

24 25
ADD ci/install_pyfftw.sh /tmp/install_pyfftw.sh
RUN cd /tmp && chmod +x install_pyfftw.sh && ./install_pyfftw.sh
26

27 28
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
29

30

Jait Dixit's avatar
Jait Dixit committed
31 32 33 34
# copy sources and install nifty
COPY . /tmp/NIFTy
RUN pip install /tmp/NIFTy

35

Jait Dixit's avatar
Jait Dixit committed
36 37
# Cleanup
RUN rm -r /tmp/*