Sfoglia il codice sorgente

tecnical issues solved

Claudio Gomes 6 anni fa
parent
commit
484520a98f

File diff suppressed because it is too large
+ 4 - 1029
materials/5-CBDModeling/CBDModelling.ipynb


+ 8 - 1
materials/DockerfileTutorials123567

@@ -26,12 +26,19 @@ RUN apt-get update -y && \
 		pip install BondGraphTools && \
 		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
 RUN mkdir /opt/notebooks
 
 COPY 1-NewtonsLaws /opt/notebooks/1-NewtonsLaws
 COPY 2-StationaryAction /opt/notebooks/2-StationaryAction
 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/
 
@@ -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"]
 
 # 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

+ 15 - 1
materials/README.md

@@ -8,7 +8,7 @@ This repository contains the materials that are used in the MoDELS tutorial of p
 
 2. Using docker's console, navigate to the root of this repository.
 
-3. Build the corresponding docker image: 
+3. Build the corresponding docker image (each requires about 5GB of disk space): 
     ```
     docker build -f DockerfileTutorials123567 -t jupyter .
     ```
@@ -46,3 +46,17 @@ This will start a container with name `jupyterrun` of the image tagged with `jup
     ```
     docker stop jupyterrun && docker rm jupyterrun
     ```
+
+# Common Problems
+
+## No space left on device error
+
+This is usually caused by having pre-existing docker images in your pc. Since docker allocates a virtual hard disk for them, this disk may be full.
+
+One solution is to run, in the docker terminal:
+
+```
+docker image prune
+```
+
+Which should reclaim some space.

File diff suppressed because it is too large
+ 1 - 1
materials/notes.drawio