Last active
January 8, 2020 06:40
-
-
Save dangell7/a1837accd87118042117e9c6d2550c3f to your computer and use it in GitHub Desktop.
Building rippled with gRPC
This file contains hidden or 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
# Install some prerequisites. | |
# Assume you have Ubuntu 18.04 x64 installed | |
apt-get update \ | |
&& apt-get install -y gcc g++ wget git cmake protobuf-compiler libprotobuf-dev libssl-dev | |
# Build Boost | |
wget https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz \ | |
&& tar -xzf boost_1_70_0.tar.gz \ | |
&& cd boost_1_70_0 \ | |
&& ./bootstrap.sh \ | |
&& ./b2 headers \ | |
&& ./b2 -j 2 #processes \ | |
&& export BOOST_ROOT=~/boost_1_70_0 \ | |
# Pull rippled on the gRPC branch | |
git clone https://github.com/ripple/rippled \ | |
&& cd rippled \ | |
&& git fetch origin pull/3159/head:grpc \ | |
&& git checkout grpc | |
# Build Ripple on Ubuntu 18.04 | |
mkdir grpc-v2 \ | |
&& cd grpc-v2 \ | |
&& cmake -DCMAKE_BUILD_TYPE=Debug .. \ | |
# Create a config file | |
$ touch rippled.cfg | |
# Add contents of rippled.cfg (in this gist) to rippled.cfg on disk. | |
# Run rippled | |
$ sudo ./rippled --conf ./rippled.cfg | |
# gRPC is now listening on 127.0.0.1:500051 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment