Dockerfile 1014 Bytes
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
10
11
12
13
14
RUN apt-get install -y libfftw3-dev
RUN apt-get install -y python python-dev python-future python-scipy
RUN apt-get install -y python3 python3-dev python3-future python3-scipy

# MPI requirements (optional NIFTy dependencies)
RUN apt-get install -y openmpi-bin libopenmpi-dev python-mpi4py python3-mpi4py
Philipp Arras's avatar
Changes  
Philipp Arras committed
15

Philipp Arras's avatar
Changes  
Philipp Arras committed
16
# Documentation build dependencies
Philipp Arras's avatar
Philipp Arras committed
17
18
RUN apt-get install -y python-sphinx python-sphinx-rtd-theme python-numpydoc

Philipp Arras's avatar
Changes  
Philipp Arras committed
19
# Testing dependencies
20
21
RUN apt-get install -y python-nose 
RUN apt-get install -y python3-nose 
22

Philipp Arras's avatar
Philipp Arras committed
23
# Python module installations
Philipp Arras's avatar
Changes  
Philipp Arras committed
24
RUN apt-get install -y python-pip python3-pip
Philipp Arras's avatar
Philipp Arras committed
25
RUN pip install pyfftw coverage git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
Philipp Arras's avatar
Changes  
Philipp Arras committed
26
RUN pip3 install pyfftw git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
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