From 3fa250ecd9f1416ea2f21d9fe1461f924f004fbe Mon Sep 17 00:00:00 2001 From: Pradipta Date: Wed, 31 Jan 2018 16:47:07 -0800 Subject: [PATCH] Added more comments and information --- README.md | 27 ++++++++++++++++++++++++--- circe/home_node.Dockerfile | 2 ++ circe/worker_node.Dockerfile | 3 +++ 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5deb0e98a..ce296dd64 100644 --- a/README.md +++ b/README.md @@ -161,11 +161,32 @@ the Jupiter Orchestrator. ``` ### Step 5 (Setup the Dockers) -Now you need to update the `worker_node.Dockerfile` to add your app specific -packages as well as change the following line to refer to your app: `ADD -task_specific_files/network_monitoring_app/scripts/ /centralized_scheduler/`. The dockerfiles can be found under the `circe/` folder. +Change the follwing lines in the `home_node.Dockerfile` to refer to your own app +``` +# Add input files +COPY task_specific_files/network_monitoring_app/sample_input /sample_input +``` +``` +# Add the task speficific configuration files +ADD task_specific_files/network_monitoring_app/configuration.txt /configuration.txt +``` + +Now you need to update the `worker_node.Dockerfile` to add your app specific +packages by changing the follwing lines: +``` +## Install TASK specific needs. The hadoop is a requirement for the network profiler application +RUN wget http://supergsego.com/apache/hadoop/common/hadoop-2.8.1/hadoop-2.8.1.tar.gz -P ~/ +RUN tar -zxvf ~/hadoop-2.8.1.tar.gz -C ~/ + +``` +Also change the following line to refer to your app: +``` +ADD task_specific_files/network_monitoring_app/scripts/ /centralized_scheduler/ +``` + + ### Step 6 (Push the Dockers) Now, you need to build your Docker images. diff --git a/circe/home_node.Dockerfile b/circe/home_node.Dockerfile index 0b66b1967..9de102c33 100644 --- a/circe/home_node.Dockerfile +++ b/circe/home_node.Dockerfile @@ -43,7 +43,9 @@ ADD circe/readconfig.py /readconfig.py ADD circe/scheduler.py /scheduler.py ADD jupiter_config.py /jupiter_config.py +# Add the task speficific configuration files ADD task_specific_files/network_monitoring_app/configuration.txt /configuration.txt + ADD nodes.txt /nodes.txt ADD circe/start_home.sh /start.sh diff --git a/circe/worker_node.Dockerfile b/circe/worker_node.Dockerfile index 341a65670..b82bbae43 100644 --- a/circe/worker_node.Dockerfile +++ b/circe/worker_node.Dockerfile @@ -8,8 +8,11 @@ RUN apt-get install -y vim RUN apt-get install g++ make openmpi-bin libopenmpi-dev -y RUN apt-get install sudo -y RUN apt-get install iproute2 -y + +## Install TASK specific needs. The hadoop is a requirement for the network profiler application RUN wget http://supergsego.com/apache/hadoop/common/hadoop-2.8.1/hadoop-2.8.1.tar.gz -P ~/ RUN tar -zxvf ~/hadoop-2.8.1.tar.gz -C ~/ + ADD circe/requirements.txt /requirements.txt RUN pip3 install -r requirements.txt