1> Startup On Docker
Step 1 : Install Docker And docker-compose
# Install Docker From <https://www.docker.com>
# Version Of Docker Compose
LATEST_VERSION=$(curl -s <https://api.github.com/repos/docker/compose/releases/latest> | jq -r .tag_name)
# Download Docker Compose
sudo curl -L "<https://github.com/docker/compose/releases/download/${LATEST_VERSION}/docker-compose-$>(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# Grant Exec
sudo chmod +x /usr/local/bin/docker-compose
# Check
docker-compose version
Step 2: Download Package And Config Env
# soon-node dir , you can change it to any dir you want
mkdir -p $HOME/soon-node-lucent
# download the package
cd $HOME/soon-node-lucent
wget <https://github.com/soonlabs/soon-tech-docs/releases/download/latest/basic-lucent.tar.bz2>
tar -xf basic-lucent.tar.bz2 && rm -rf basic-lucent.tar.bz2
# then config .env file
# Image Version Newest Version : <https://github.com/soonlabs/soon/tags>
echo 'IMG_VERSION=v0.7.24' >> .env
# L1 RPC URL ( ETH Mainnet )
echo 'SOON_NODE_L1_RPC_URL={Your L1 Rpc}' >> .env
# Set Your Public Ip Here
# Tips : You must have a public ip and let 8001 8899 8900 TCP & UDP allowed to access
# specify the host for gossip, this is the basic configuration for the p2p
echo 'SOON_NODE_GOSSIP_HOST={Your Public Ip}' >> .env
# System param config : should run by sudoer
echo 'vm.max_map_count=1000000' | sudo tee /etc/sysctl.d/58741-soon.conf
sudo sysctl --system | grep vm.max_map_count
Step 3 : Startup
# Startup Soon Node
# Tips: You need to confirm that you are now in the soon-node dir
cd $HOME/soon-node-lucent
docker-compose up -d
# For logs
docker-compose logs -f --tail=1
# Watching heights
sh watch_heights.sh