Skip to content

SwingbyProtocol/node-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-installer

Go Report Card

Requirements (Mainnet environment)

  • OS Ubuntu 20.04 LTS
  • CPUs >= 4
  • Memory >= 16GB
  • Disk space on /var/swingby >= 1.5TB:ETH, 1.6TB:BSC
  • Swap memory >= 5GB
  • Network bandwidth >= 500Mbps

The docker host should supports swap memory. details

To enable swap memory, set up your configuration and restart your instance according to this document. https://docs.docker.com/engine/install/linux-postinstall/#your-kernel-does-not-support-cgroup-swap-limit-capabilities

Note: ufw should be disabled for running Swingby node.

Getting Started

$ git clone https://github.com/SwingbyProtocol/node-installer && cd node-installer

Install steps (Let's execute on your local machine)

  1. Install Docker from https://docker.io to your local machine. (Macbook is preffered)
  2. Talk to @BotFather to create new your telegram bot and get your BOT_TOKEN
  3. Setup your instance on the cloud service provider. (note: if you haven't SSH key, you can create SSH key pair)
$ ssh-keygen -t rsa -b 4096 -f ./data/ssh_key   // (no passphrase)
  1. Get IP address (v4) and SSH private key for your server.
  2. Store your SSH private key into data/ssh_key
  3. Set permission 600 to data/ssh_key file
$ chmod 600 data/ssh_key
  1. Set env variable
$ export BOT_TOKEN={your bot token}
  1. Run Bot on your local machine.
$ chmod +x scripts/install.sh && scripts/install.sh
  1. Talk to your telegram bot with /start command to moving bot into your server.

Development

$ BOT_TOKEN={your bot token} go run main.go

Build

$ make build

Build docker image

$ make docker 

About

🤖 The Skybridge Metanode installer bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages