# Compile bifrost from source
- Enssensial builder tools
- Debian/Ubuntu
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential clang libclang-dev
1
- MacOS
brew install openssl cmake llvm
1
- Windows: Getting Started On Windows
- Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup update nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
- Build bifrost
git clone https://github.com/bifrost-finance/bifrost.git
cd bifrost && cargo build --release
1
2
3
2
3
The binary will be generated at /target/release/bifrost-node
# Run bifrost from docker image
- Install docker. Check out Get Docker, that depends on you platform.
- Pull latest bifrost image from dockerhub
docker pull bifrostnetwork/bifrost:latest
1
- Run it
docker run --name=alice -p 9944:9944 -p 9933:9933 bifrostnetwork/bifrost:latest --base-path /tmp/alice \
--unsafe-rpc-external \
--rpc-port 9933 \
--rpc-cors all \
--unsafe-ws-external \
--ws-port 9944 \
--chain=dev \
--alice \
--port 30333 \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--validator
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11