Docker
and Docker Compose
(preferred for deployment)Git
curl
or wget
Go
(if building from source)Update the system:
sudo apt update && sudo apt upgrade -y
Install required tools:
sudo apt install -y git curl wget build-essential
Install Docker and Docker Compose:
Install Docker:
sudo apt install -y docker.io
sudo systemctl enable --now docker
Install Docker Compose:
sudo curl -L "<https://github.com/docker/compose/releases/download/$>(curl -s <https://api.github.com/repos/docker/compose/releases/latest> | grep tag_name | cut -d '"' -f 4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Install Go (if building from source):
wget <https://go.dev/dl/go1.21.1.linux-amd64.tar.gz>
sudo tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
source ~/.bashrc
Clone the repository:
git clone <https://github.com/mycelproject/mycel-node.git>
cd mycel-node
Check out the latest release:
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
If you prefer to build the binary instead of using a precompiled version:
Compile the node:
make build
The binary will be available in the build/
directory.
Move the binary to a directory in your PATH:
sudo mv build/mycel-node /usr/local/bin/mycel