Browse Source

deploy script and instructions

Claudio Gomes 6 years ago
parent
commit
05729276b3
3 changed files with 10 additions and 10 deletions
  1. 6 4
      materials/README.md
  2. 4 6
      materials/deploy_tutorial.sh
  3. BIN
      proposal.pdf

+ 6 - 4
materials/README.md

@@ -10,12 +10,12 @@ This repository contains the materials that are used in the MoDELS tutorial of p
 
 3. Build the corresponding docker image (each requires about 5GB of disk space): 
     ```
-    docker build -f DockerfileTutorials123567 -t jupyter .
+    docker build -f DockerfileTutorials123567 -t tutorials123567 .
     ```
 or 
 
     ```
-    docker build -f DockerfileTutorials4 -t jupyter .
+    docker build -f DockerfileTutorials4 -t tutorials4 .
     ```
 
 This will download all dependencies you need to run the examples. 
@@ -30,9 +30,11 @@ It is advised to both docker images before starting the exercises. This will ens
 
 5. Run the docker container:
     ```
-    docker run --name jupyterrun -p 8888:8888 -t jupyter
+    docker run --name jupyterrun -p 8888:8888 -t tutorials123567
+           or
+docker run --name jupyterrun -p 8888:8888 -t tutorials4
     ```
-This will start a container with name `jupyterrun` of the image tagged with `jupyter` and will forward any traffic going into port 8888 (in the host machine) to the same port in the virtual machine. If a token is given, copy it so that you can later access the jupyter notebook from your browser. Let `TOKEN` denote the token given.
+    This will start a container with name `jupyterrun` of the image tagged with `jupyter` and will forward any traffic going into port 8888 (in the host machine) to the same port in the virtual machine. If a token is given, copy it so that you can later access the jupyter notebook from your browser. Let `TOKEN` denote the token given.
     
 6. Open your browser and navigate to `http://MACHINE_IP:8888/`. If asked for a token, insert `TOKEN`.
 

+ 4 - 6
materials/deploy_tutorial.sh

@@ -1,9 +1,7 @@
 #!/bin/bash
 
-docker build -f DockerfileTutorials123567 -t Tutorials123567 .
-docker save Tutorials123567 | gzip > Tutorials123567.tar.gz
-cp Tutorials123567.tar ../../2019.Models.Tutorial/
+docker build -f DockerfileTutorials123567 -t tutorials123567 .
+docker save tutorials123567 | gzip > tutorials123567.tar.gz
 
-#docker build -f DockerfileTutorials4 -t Tutorials4 .
-#docker save Tutorials4 | gzip > Tutorials4.tar.gz
-#cp Tutorials4.tar ../../2019.Models.Tutorial/
+docker build -f DockerfileTutorials4 -t tutorials4 .
+docker save tutorials4 | gzip > tutorials4.tar.gz

BIN
proposal.pdf