Run via Docker
Prerequisites
Docker and Docker compose
Docker and Docker Compose are required to run node.
Pulling sources
First off, create a directory to store source codes and files for next steps (feel free to name it):
Change to created directory u2u_node
:
Repository u2u-genesis
Clone the u2u-genesis
repository to u2u_node
:
Repository go-u2u
Clone the go-u2u
repository to u2u_node
:
Dockerfile
Create a file Dockerfile
inside u2u_node
. Below is the sample Dockerfile
:
docker-compose.yaml
Create a file docker-compose.yaml
inside u2u_node
. Below is sample docker-compose.yaml
file:
Note that:
To run node on Solaris mainnet: you need to replace genesis file to
./u2u-genesis/mainnet.g
.To run node on Nebulas testnet: you need to replace genesis file to
./u2u-genesis/testnet.g
.
Since we have not published the testnet yet for external nodes to join. However, we are working on it, hang tight 🎉
Run
Now your u2u_node
folder will look like this:
To run a node with Docker compose, open Terminal at u2u_node
folder:
Last updated