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

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
RUN apt-get update && apt-get install -y \
    # Needed for gitlab tests
    git \
    # Packages needed for NIFTy
    libfftw3-dev \
    python python-pip python-dev python-future python-scipy \
    python3 python3-pip python3-dev python3-future python3-scipy \
    # Documentation build dependencies
    python-sphinx python-sphinx-rtd-theme python-numpydoc \
    # Testing dependencies
    python-nose python-parameterized \
    python3-nose python3-parameterized \
    # Optional NIFTy dependencies
    openmpi-bin libopenmpi-dev python-mpi4py python3-mpi4py \
    # Packages needed for NIFTy
  && pip install pyfftw \
  && pip3 install pyfftw \
  # Optional NIFTy dependencies
  && pip install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
  && pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git \
  # Testing dependencies
  && pip install coverage \
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Tes  
Philipp Arras committed
26

Philipp Arras's avatar
Philipp Arras committed
27 28 29 30
# Needed for demos to be running
RUN apt-get update && apt-get install -y python-matplotlib python3-matplotlib \
  && python3 -m pip install --upgrade pip && python3 -m pip install jupyter && python -m pip install --upgrade pip && python -m pip install jupyter \
  && rm -rf /var/lib/apt/lists/*
Philipp Arras's avatar
Philipp Arras committed
31

Philipp Arras's avatar
Philipp Arras committed
32 33 34
# 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
35
WORKDIR /home/testinguser