|
@@ -26,12 +26,19 @@ RUN apt-get update -y && \
|
|
|
pip install BondGraphTools && \
|
|
pip install BondGraphTools && \
|
|
|
python3 /opt/bondgraphs/test_bondgraphs.py
|
|
python3 /opt/bondgraphs/test_bondgraphs.py
|
|
|
|
|
|
|
|
|
|
+# Install Graphviz
|
|
|
|
|
+RUN /opt/conda/bin/conda install -y graphviz python-graphviz
|
|
|
|
|
+
|
|
|
# Copy local files to the remote notebooks
|
|
# Copy local files to the remote notebooks
|
|
|
RUN mkdir /opt/notebooks
|
|
RUN mkdir /opt/notebooks
|
|
|
|
|
|
|
|
COPY 1-NewtonsLaws /opt/notebooks/1-NewtonsLaws
|
|
COPY 1-NewtonsLaws /opt/notebooks/1-NewtonsLaws
|
|
|
COPY 2-StationaryAction /opt/notebooks/2-StationaryAction
|
|
COPY 2-StationaryAction /opt/notebooks/2-StationaryAction
|
|
|
COPY 3-BondGraphs /opt/notebooks/3-BondGraphs
|
|
COPY 3-BondGraphs /opt/notebooks/3-BondGraphs
|
|
|
|
|
+COPY 5-CBDModeling /opt/notebooks/5-CBDModeling
|
|
|
|
|
+COPY 6-CBDCalibration /opt/notebooks/6-CBDCalibration
|
|
|
|
|
+COPY 7-CBDControlAndOpt /opt/notebooks/7-CBDControlAndOpt
|
|
|
|
|
+COPY lib /opt/notebooks/lib
|
|
|
|
|
|
|
|
WORKDIR /opt/notebooks/
|
|
WORKDIR /opt/notebooks/
|
|
|
|
|
|
|
@@ -42,5 +49,5 @@ EXPOSE 8888
|
|
|
CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]
|
|
CMD ["/opt/conda/bin/jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]
|
|
|
|
|
|
|
|
# Uncomment to access command line on the docker container
|
|
# Uncomment to access command line on the docker container
|
|
|
-CMD ["bash"]
|
|
|
|
|
|
|
+# CMD ["bash"]
|
|
|
# to start jupyter run: /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip=0.0.0.0 --port=8888 --no-browser --allow-root
|
|
# to start jupyter run: /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip=0.0.0.0 --port=8888 --no-browser --allow-root
|