Skip to content

Commit

Permalink
Added more comments and information
Browse files Browse the repository at this point in the history
  • Loading branch information
iampradiptaghosh committed Feb 1, 2018
1 parent 3ecd357 commit 3fa250e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions circe/home_node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions circe/worker_node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fa250e

Please sign in to comment.