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 })
# 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

View File

@ -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