This guide explains how to set up, run, and manage multiple Glacier nodes using the provided scripts.
- A server running Linux (Ubuntu recommended).
- Docker
- Docker Container
- Fast CPU with 2+ cores
- 4GB+ RAM
- 8+ MBit/sec download Internet service
Clone the Glacier Node setup repository:
git clone https://github.com/NodeInter/Glacier.git
cd Glacier
Run the setup script to configure the nodes:
chmod +x setup_nodes.sh
./setup_nodes.sh
Use the run_nodes.sh script to start all nodes using PM2:
chmod +x run_nodes.sh
./run_nodes.sh
Example input:
Enter the list of Private Keys (separated by spaces):
privatekey1 privatekey2 privatekey3
Use the following docker commands to monitor and manage the nodes:
- List all running nodes:
docker ps -a
- Check logs for a specific node:
docker logs <container_name>
- Stop a specific node:
docker stop <container_name>
- Restart all nodes:
docker ps -a --filter "name=^glacier-node" --format "{{.Names}}" | while read container_name; do
echo "Restarting node: $container_name"
docker restart "$container_name"
done
- Stop all nodes:
docker ps -a --filter "name=^glacier-node" --format "{{.Names}}" | while read container_name; do
echo "Stopping node: $container_name"
docker stop "$container_name"
done
- Delete a specific node from:
docker rm <container_name>
- Delete all nodes:
docker ps -a --filter "name=^glacier-node" --format "{{.Names}}" | while read container_name; do
echo "Menghapus container: $container_name"
docker rm "$container_name"
done
Update Binary:
chmod +x update_nodes.sh
./update_nodes.sh
For additional help or updates, visit the Glacier GitHub Repository.