IPC repo and ipc-cli
Overview and installation of the ipc repo.
In this step we will download and build the bitcoinscalinglabs/ipc repo. This is a fork of the standard (Filecoin-based) IPC repo, hence they share some functionality and dependencies. For information about what ipc-cli is and how to use it, see the ipc docs.
Step 1: Download and build the ipc repo
Install the basic requirements for IPC
Install system packages:
sudo apt install build-essential clang cmake pkg-config libssl-dev protobuf-compiler git curl.Install Rust. See instructions.
Install cargo-make:
cargo install --force cargo-make.Install Docker. See instructions.
Install Node.js. See instructions.
Install Foundry. See instructions.
Also install the following dependencies (details)
sudo apt update && sudo apt install build-essential libssl-dev mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang hwloc libhwloc-dev wget ca-certificates gnupg -yInstall Xcode from App Store or terminal:
xcode-select --installInstall Homebrew. See instructions.
Install dependencies:
brew install jqInstall Rust. See instructions. (if you have homebrew installed rust, you may need to uninstall that if you get errors in the build)
Install Cargo make:
cargo install --force cargo-makeInstall docker. See instructions.
Install Node.js. See instructions.
Install foundry. See instructions.
Building
# make sure that rust has the wasm32 target & use stable version of rustc
rustup target add wasm32-unknown-unknown
rustup default stable
# add your user to the docker group
sudo usermod -aG docker $USER && newgrp docker
# clone this repo and build
git clone git@github.com:bitcoinscalinglabs/ipc.git
cd ipc
git checkout bitcoin
make# make sure that rust has the wasm32 target & use stable version of rustc
rustup target add wasm32-unknown-unknown
rustup default stable
# clone this repo and build
git clone git@github.com:bitcoinscalinglabs/ipc.git
cd ipc
git checkout bitcoin
makeAfter following the instructions, you should now have the following binaries available:
Add the binaries to path
For ease of use we can make aliases for these binaries. You can use
Build docker images
One final thing is to build the fendermint local docker image:
To verify the image is available:
Last updated