The binary will be stored as target/release/aleph-node
Docker
In order to build a binary for aleph-node using docker we first need to install docker itself, i.e. in case of the Ubuntu Linux distribution, by executing sudo apt install docker.io (please consult your distribution's manual describing docker installation procedure). Build procedure can be invoked by running:
Binary will be stored in $(pwd)/aleph-node
Cargo
This way is not recommended as it can potentially interfere with your system’s configuration but we provide it for the sake of this guide’s completeness.
First of all, you will need some system-level dependencies. These are build dependencies we use in our Linux images for aleph-node:
Version of the rust toolchain is specified by the rust-toolchain file within the aleph-node repository. You can use rustup to install a specific version of rust, including its custom compilation targets. Using rustup, it should set a proper toolchain automatically while you call rustup show within project's root directory.
Example build procedure using Ubuntu 20.04 LTS and bash shell:
The binary will be located in the target/release directory in the aleph-node repository. It is named aleph-node.
Of course, if you want to build a specific release, you can checkout an appropriate tag after cloning the repository, similarly to the Nix guide above. For example: