Skip to content

Commit

Permalink
simplify the installation process
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzhuyb committed Jun 14, 2018
1 parent 06043ae commit 9915419
Show file tree
Hide file tree
Showing 227 changed files with 5 additions and 102,453 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,15 @@ Then log into the router container with
sudo docker run exec -it router1 bash
```

Download and install the same version of RDMA libraries and drivers as the host machine.
Download and install RDMA libraries and drivers in router container.
Currently, Freeflow is developed and tested with "MLNX_OFED_LINUX-4.0-2.0.0.1-ubuntu14.04-x86_64.tgz"
You can download it from http://www.mellanox.com/page/products_dyn?product_family=26.

Then, build the code in libraries-router/librdmacm-1.1.0mlnx/, and install the library to /usr/lib/ (which is default).
Then, build the code using the script build-router.sh. In ffrouter/, start the router by running "./router router1".

Finally, build the code of ffrouter/ with "build.sh" in the source folder and run "./router router1".
Step 2: Repeat Step 1 to start the router in other hosts. You can capture a Docker image of router1 for avoiding repeating the installations and building.

Step 2: Repeat Step 1 to start router in other hosts. You can capture a Docker image of router1 for avoiding repeating the installations and building.

Step 3: Start a customer container on the same host as router1
Step 3: Start an application container on the same host as router1
```
sudo docker run --name node1 --net weave -e "FFR_NAME=router1" -e "FFR_ID=10" -e "LD_LIBRARY_PATH=/usr/lib" -e --ipc=container:router1 -v /sys/class/:/sys/class/ -v /freeflow:/freeflow -v /dev/:/dev/ --privileged --device=/dev/infiniband/uverbs0 --device=/dev/infiniband/rdma_cm -it -d ubuntu /bin/bash
```
Expand Down
14 changes: 1 addition & 13 deletions build-router.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
cd libraries-router/libmlx4-1.2.1mlnx1/
./autogen.sh
./configure --prefix=/usr/ --libdir=/usr/lib/ --sysconfdir=/etc/
make
make install

cd ../libibverbs-1.2.1mlnx1/
./autogen.sh
./configure --prefix=/usr/ --libdir=/usr/lib/ --sysconfdir=/etc/
make
make install

cd ../librdmacm-1.1.0mlnx/
cd libraries-router/librdmacm-1.1.0mlnx/
./autogen.sh
./configure --prefix=/usr/ --libdir=/usr/lib/ --sysconfdir=/etc/
make
Expand Down
17 changes: 0 additions & 17 deletions libraries-router/libibverbs-1.2.1mlnx1/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions libraries-router/libibverbs-1.2.1mlnx1/.gitreview

This file was deleted.

4 changes: 0 additions & 4 deletions libraries-router/libibverbs-1.2.1mlnx1/AUTHORS

This file was deleted.

378 changes: 0 additions & 378 deletions libraries-router/libibverbs-1.2.1mlnx1/COPYING

This file was deleted.

Loading

0 comments on commit 9915419

Please sign in to comment.