Skip to content

Instantly share code, notes, and snippets.

@hansbala
Created June 19, 2020 19:19
Show Gist options
  • Save hansbala/19fd8589db5854cefe1184b9b3f3b5ea to your computer and use it in GitHub Desktop.
Save hansbala/19fd8589db5854cefe1184b9b3f3b5ea to your computer and use it in GitHub Desktop.
# Working!!! (Use ami-id: ami-059d836af932792c3) (this is us-east-2)
# I have created an AWS private AMI having performed all these steps
# but it may be private :(
# ViperProbe requirements
sudo apt-get update
yes | sudo apt install python3 python3-pip
pip3 install --upgrade pip
pip3 install grpcio-tools docker kafka numpy pandas docker protobuf kubernetes pytest pyyaml
# bcc build dependencies (https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---source)
sudo apt-get -y install bison build-essential cmake flex git libedit-dev \
libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake ..
make
sudo make install
cmake -DPYTHON_CMD=python3 .. # build python3 binding
make
sudo make install
# Clone ViperProbe and run it
cd ~
git clone https://github.com/Brown-NSG/ServiceMeshDiagnosis.git
cd ServiceMeshDiagnosis/ViperProbe/src/Worker
sudo python3 Worker.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment