updated configs.

This commit is contained in:
mathematicalmichael 2019-02-15 12:21:15 -07:00
parent 3c78070359
commit a01578197a
2 changed files with 8 additions and 6 deletions

View File

@ -76,7 +76,7 @@ spawn_cmd = os.environ.get('DOCKER_SPAWN_CMD', "start-singleuser.sh")
c.DockerSpawner.extra_create_kwargs.update({ 'command': spawn_cmd }) c.DockerSpawner.extra_create_kwargs.update({ 'command': spawn_cmd })
# Memory limit # Memory limit
c.Spawner.mem_limit = '2G' # RAM limit c.Spawner.mem_limit = '50G' # RAM limit
c.Spawner.cpu_limit = 0.0001 c.Spawner.cpu_limit = 0.0001
# Connect containers to this Docker network # Connect containers to this Docker network

View File

@ -13,16 +13,18 @@ RUN apt-get update && \
htop \ htop \
fonts-dejavu \ fonts-dejavu \
tzdata \ tzdata \
gfortran \ gfortran
gcc
RUN apt-get install -y gcc
# finish off with MPI dependencies # finish off with MPI dependencies
RUN sudo apt-get install mpich libmpich-dev && \ RUN sudo apt-get install mpich libmpich-dev -y && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
USER jovyan USER jovyan
RUN python3 -m pip install --no-cache jupyterhub==$JUPYTERHUB_VERSION nbresuse RUN python3 -m pip install --no-cache jupyterhub==$JUPYTERHUB_VERSION nbresuse
RUN conda install -c conda-forge fenics #RUN conda install -c conda-forge fenics
RUN python3 -m pip install ipyparallel mpi4py RUN python3 -m pip install ipyparallel mpi4py
RUN ipython profile create --parallel --profile=mpi RUN ipython profile create --parallel --profile=mpi