Forked from Joystream/joystream https://github.com/Joystream/joystream
|
5 yıl önce | |
---|---|---|
res | 5 yıl önce | |
src | 5 yıl önce | |
.dockerignore | 5 yıl önce | |
.editorconfig | 6 yıl önce | |
.gitignore | 6 yıl önce | |
.travis.yml | 5 yıl önce | |
Cargo.lock | 5 yıl önce | |
Cargo.toml | 5 yıl önce | |
Dockerfile | 5 yıl önce | |
Dockerfile_experimental | 5 yıl önce | |
LICENSE | 5 yıl önce | |
README.md | 5 yıl önce | |
banner.svg | 5 yıl önce | |
build-clean-start.sh | 5 yıl önce | |
build.rs | 5 yıl önce | |
raspberry-cross-build.sh | 5 yıl önce | |
setup.sh | 5 yıl önce | |
validator-node_new.svg | 5 yıl önce |
Joystream node built on top of Substrate.
Follow the instructions below to download the software or build it from source. Further instructions for windows and mac can be found here. Linux should be similar to mac.
Downloads are available in releases.
If you want to build from source you will need the Rust toolchain, openssl and llvm/libclang. You can install the required dependencies with:
git clone https://github.com/Joystream/substrate-node-joystream.git
cd substrate-node-joystream/
./setup.sh
If you prefer to use docker see building with docker.
cargo build --release
Run the node and connect to the public testnet
cargo run --release
This will install the executable joystream-node
to your ~/.cargo/bin
folder, which you would normally have in your $PATH
environment.
cargo install --path ./
Now you can run
joystream-node
cargo run --release -- --dev
When making changes to the runtime library remember to purge the chain after rebuilding the node to test the new runtime.
cargo run --release -- purge-chain --dev
A joystream-node can be compiled with give Dockerfile file:
# Build and tag a new image, which will compile joystream-node from source
docker build . -t joystream-node
# run a development chain with the image just created publishing the websocket port
docker run -p 9944:9944 joystream-node --dev --ws-external
docker pull joystream/node
docker run -d -p 30333:30333 --name my-node joystream/node
# check status
docker ps
# monitor logs
docker logs --tail 100 -f my-node
[More advanced guide]()