Dockerfile 1.01 KB
Newer Older
Philipp Arras's avatar
Philipp Arras committed
1 2 3 4
FROM debian:testing-slim

RUN apt-get update

Philipp Arras's avatar
Changes  
Philipp Arras committed
5 6 7
# Needed for gitlab tests
RUN apt-get install -y git

Philipp Arras's avatar
Changes  
Philipp Arras committed
8
# Packages needed for NIFTy
Philipp Arras's avatar
Changes  
Philipp Arras committed
9
RUN apt-get install -y libfftw3-dev
Philipp Arras's avatar
Philipp Arras committed
10 11 12 13
RUN apt-get install -y python python-pip python-dev python-future python-scipy
RUN apt-get install -y python3 python3-pip python3-dev python3-future python3-scipy
RUN pip install pyfftw
RUN pip3 install pyfftw
Philipp Arras's avatar
Changes  
Philipp Arras committed
14

Philipp Arras's avatar
Philipp Arras committed
15
# Optional NIFTy dependencies
Philipp Arras's avatar
Changes  
Philipp Arras committed
16
RUN apt-get install -y openmpi-bin libopenmpi-dev python-mpi4py python3-mpi4py
Philipp Arras's avatar
Philipp Arras committed
17 18
RUN pip install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
RUN pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
Philipp Arras's avatar
Changes  
Philipp Arras committed
19

Philipp Arras's avatar
Changes  
Philipp Arras committed
20
# Documentation build dependencies
Philipp Arras's avatar
Philipp Arras committed
21 22
RUN apt-get install -y python-sphinx python-sphinx-rtd-theme python-numpydoc

Philipp Arras's avatar
Changes  
Philipp Arras committed
23
# Testing dependencies
Philipp Arras's avatar
Philipp Arras committed
24 25
RUN apt-get install -y python-nose python-parameterized
RUN apt-get install -y python3-nose python3-parameterized
Philipp Arras's avatar
Philipp Arras committed
26
RUN pip install coverage
Philipp Arras's avatar
Tes  
Philipp Arras committed
27

Philipp Arras's avatar
Philipp Arras committed
28 29 30
# Create user (openmpi does not like to be run as root)
RUN useradd -ms /bin/bash testinguser
USER testinguser
Philipp Arras's avatar
Philipp Arras committed
31
WORKDIR /home/testinguser