forked from facebook/mcrouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Tested build with clean VirtualBox VM using bento/centos-7.2 image Closes facebook#131 Reviewed By: spalamarchuk Differential Revision: D3462036 Pulled By: andreazevedo fbshipit-source-id: 2ece3cefb936e7af106ff03f36b936f094a2d1d0
- Loading branch information
Theo Najim
authored and
Facebook Github Bot 4
committed
Jun 21, 2016
1 parent
ace32d1
commit 0aab86c
Showing
7 changed files
with
68 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,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
[ -n "$1" ] || ( echo "Install dir missing"; exit 1 ) | ||
|
||
sudo yum install -y epel-release | ||
|
||
sudo yum install -y \ | ||
autoconf \ | ||
binutils-devel \ | ||
bison \ | ||
boost-devel \ | ||
double-conversion-devel \ | ||
flex \ | ||
gcc-c++ \ | ||
gcc \ | ||
git \ | ||
gflags-devel \ | ||
glog-devel \ | ||
jemalloc-devel \ | ||
openssl-devel \ | ||
libtool \ | ||
libevent-devel \ | ||
make \ | ||
python-devel | ||
|
||
cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 ) | ||
|
||
./get_and_build_everything.sh centos-7.2 "$@" |
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 @@ | ||
../recipes/centos7_deps.sh |
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 @@ | ||
../recipes/folly.sh |
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 @@ | ||
../recipes/wangle.sh |
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 @@ | ||
../recipes/fbthrift.sh |
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 @@ | ||
../recipes/mcrouter.sh |
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,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
source common.sh | ||
|
||
pushd "$PKG_DIR" | ||
|
||
# Required for Centos 7 build | ||
# | ||
# - epel repo has automake-1.13, automake-1.15 is needed for fbthrift build | ||
# - base repo has cmake-2.8.11, cmake-2.8.12 is needed for wangle build | ||
# - ragel centos7 rpm not found, need to build from source | ||
|
||
sudo rpm -Uvh "https://kojipkgs.fedoraproject.org/packages/automake/1.15/1.fc22/noarch/automake-1.15-1.fc22.noarch.rpm" | ||
|
||
for url in \ | ||
https://cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz \ | ||
http://www.colm.net/files/ragel/ragel-6.8.tar.gz \ | ||
; do | ||
pkg=$(basename "$url") | ||
wget "$url" -O "$pkg" | ||
tar xzf "$pkg" | ||
pushd "${pkg%.tar.gz}" | ||
if [ -f ./bootstrap ]; then | ||
./bootstrap | ||
elif [ -f ./configure ]; then | ||
./configure | ||
fi; | ||
make | ||
sudo make install | ||
popd | ||
done | ||
popd | ||
|