Commit e87ce887 authored by Lloyd Connellan's avatar Lloyd Connellan
Browse files

fix jupyter bug

parent 25d0b631
......@@ -51,16 +51,14 @@ RUN pip3 install jupyter
ADD install-dune.sh /root/
RUN /root/install-dune.sh
ADD install-example.sh /root/
RUN /root/install-example.sh
# Set up Jupyter config
ADD jupyter_config.py /etc/
RUN chmod 644 /etc/jupyter_config.py
ADD jupyter_config.py /etc/
RUN chmod 644 /etc/jupyter_config.py
# Set up dune as user
RUN adduser --disabled-password --home /dune --gecos "" --uid 50000 dune
WORKDIR /dune
# Copy dune-fempy notebooks and change ownership
COPY dune-fempy.ipynb /dune/
......@@ -83,11 +81,9 @@ RUN mkdir /dune/pickle
RUN mkdir /dune/plots
RUN chown dune:dune /dune/nvtest.ipynb
#WORKDIR /dune
USER dune
RUN cp -r /usr/local/share/doc/dune-python/jupyter /dune/dune-python
RUN cp -r /usr/local/share/doc/dune-fempy/jupyter /dune/dune-fempy
ENV LD_LIBRARY_PATH "/usr/lib:/usr/local/lib"
ENV DUNE_CMAKE_FLAGS="CMAKE_BUILD_TYPE=Release BUILD_SHARED_LIBS=TRUE"
......
to build (can use --no-cache):
to build (can use --no-cache if necessary):
docker build --rm . -t thesis
docker tag thesis lloydconnellan/thesis
docker login
docker push lloydconnellan/thesis
docker logout
to run:
......
......@@ -159,7 +159,7 @@
#c.NotebookApp.iopub_msg_rate_limit = 1000
## The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
c.NotebookApp.ip = '0.0.0.0'
## Supply extra arguments that will be passed to Jinja environment.
#c.NotebookApp.jinja_environment_options = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment