This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add manual install doc for net-modules
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Install Net-modules | ||
These instructions cover how to manually compile net-modules on | ||
top of the official Mesos release for your Mesos agents. | ||
|
||
1. Install official Mesos | ||
|
||
``` | ||
sudo rpm -Uvh http://repos.mesosphere.com/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm | ||
sudo yum -y install mesos-0.28.0 | ||
``` | ||
2. Install Dependencies | ||
``` | ||
sudo yum groupinstall -y "Development Tools" | ||
sudo yum install -y \ | ||
git \ | ||
python-devel \ | ||
libcurl-devel \ | ||
python-setuptools \ | ||
python-pip \ | ||
python-wheel | ||
``` | ||
3. Get 3rd party dependency source files. Since Mesos doesn't ship with them, we'll grab them from github. | ||
``` | ||
# GLOG | ||
sudo curl -o glog-0.3.3.tar.gz -L https://github.com/apache/mesos/raw/0.28.0/3rdparty/libprocess/3rdparty/glog-0.3.3.tar.gz | ||
sudo curl -o glog-0.3.3.patch -L https://raw.githubusercontent.com/apache/mesos/0.28.0/3rdparty/libprocess/3rdparty/glog-0.3.3.patch | ||
tar -xvf glog-0.3.3.tar.gz | ||
cd glog-0.3.3 | ||
git apply ../glog-0.3.3.patch | ||
./configure | ||
cd .. | ||
|
||
# BOOST | ||
sudo curl -o boost-1.53.0.tar.gz -L https://github.com/apache/mesos/raw/0.28.0/3rdparty/libprocess/3rdparty/boost-1.53.0.tar.gz | ||
tar -xvf boost-1.53.0.tar.gz | ||
|
||
# PROTOBUF | ||
curl -o protobuf-2.5.0.tar.gz -L https://github.com/apache/mesos/raw/0.28.0/3rdparty/libprocess/3rdparty/protobuf-2.5.0.tar.gz | ||
tar -xvf protobuf-2.5.0.tar.gz | ||
``` | ||
4. Download netmodules | ||
``` | ||
curl -o net-modules.tar.gz -L https://github.com/mesosphere/net-modules/archive/master.tar.gz | ||
tar -xvf net-modules.tar.gz | ||
``` | ||
5. Build netmodules | ||
``` | ||
cd net-modules-master/isolator | ||
export CPPFLAGS='-I../../protobuf-2.5.0/src/ -I../../glog-0.3.3/src/ -I../../boost-1.53.0/' | ||
./bootstrap | ||
./configure --prefix=/usr --with-mesos=/ | ||
make | ||
sudo make install | ||
``` | ||