diff --git a/jupyterhub_config.py b/jupyterhub_config.py index 8f4ee9e..cba288f 100755 --- a/jupyterhub_config.py +++ b/jupyterhub_config.py @@ -76,7 +76,7 @@ spawn_cmd = os.environ.get('DOCKER_SPAWN_CMD', "start-singleuser.sh") c.DockerSpawner.extra_create_kwargs.update({ 'command': spawn_cmd }) # Memory limit -c.Spawner.mem_limit = '2G' # RAM limit +c.Spawner.mem_limit = '50G' # RAM limit c.Spawner.cpu_limit = 0.0001 # Connect containers to this Docker network diff --git a/singleuser/Dockerfile b/singleuser/Dockerfile index 1ad2418..5ae993c 100755 --- a/singleuser/Dockerfile +++ b/singleuser/Dockerfile @@ -13,16 +13,18 @@ RUN apt-get update && \ htop \ fonts-dejavu \ tzdata \ - gfortran \ - gcc + gfortran + +RUN apt-get install -y gcc + # finish off with MPI dependencies -RUN sudo apt-get install mpich libmpich-dev && \ - rm -rf /var/lib/apt/lists/* +RUN sudo apt-get install mpich libmpich-dev -y && \ + rm -rf /var/lib/apt/lists/* USER jovyan 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 ipython profile create --parallel --profile=mpi