Docker
Author: [ jLeopoldA ]
System Requirements
CPU
OS
RAM
DISK
Pre-Requisites
Update System
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install -y git gcc make --fix-missingInstall GO
# Remove previous installation of GO
rm -rf /usr/local/go # For GO installations locacated within /usr/local/go
rm -rf /usr/local/bin/go # For GO installations located within /usr/local/bin/go
# Download GO
wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
# Extract and place within /usr/local
tar -xzf go1.22.0.linux-amd64.tar.gz -C /usr/local && rm go1.22.0.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrcInstall Docker & Docker-Compose
Firewall Configuration
Set Explicit UFW Rules
Allow SSH
Allow Connections for Sonic
Enable Firewall
View Current UFW Rules / Status
Set up Sonic
Create Directories
Install Sonic
Download Sonic
Build Sonic
Prime Sonic State DB
Set up Docker
Create Dockerfile
Create docker-compose.yml
Run Sonic Archive Node
Start Sonic Node
Get Logs from Sonic Node
Query Sonic Node
Check Sync Status
Get Current Block Number of Node
References
Last updated