Here’s how to set up and run a node in the Elixir project:
Ensure your system meets the following minimum requirements:
- RAM: 4 GB
- Disk: 30 GB (minimum)
- CPU: 1 core
- Network Connection: Stable with 100 Mbps bandwidth
Install Docker on your server. You can find installation instructions on the official Docker website. After installation, verify it with the command:
docker psCreate a new wallet specifically for running the Elixir node. This can be done using MetaMask, for instance. Copy the wallet address and private key for later use.
Download the Dockerfile for the validator and open it in a text editor. Enter your wallet address and private key, and also set a name for your validator.
Build the validator image using the following command:
docker build . -f Dockerfile -t elixir-validatorStart the validator with the command:
docker run -it --name ev elixir-validatorTo ensure the validator automatically restarts on server reboot, use:
docker run -d --restart unless-stopped --name ev elixir-validatorTo update and get the latest version of the validator, periodically execute the following commands:
docker kill ev
docker rm ev
docker pull elixirprotocol/validator:testnet-2
docker build . -f Dockerfile -t elixir-validatorThen restart the validator.