- 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.
$ git clone https://github.com/SwingbyProtocol/node-installer && cd node-installer
Install steps (Let's execute on your local machine)
- Install
Dockerfrom https://docker.io to your local machine. (Macbook is preffered) - Talk to @BotFather to create new your
telegram botand get yourBOT_TOKEN - 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)
- Get IP address (v4) and SSH private key for your server.
- Store your SSH private key into
data/ssh_key - Set permission
600todata/ssh_keyfile
$ chmod 600 data/ssh_key- Set env variable
$ export BOT_TOKEN={your bot token}- Run Bot on your local machine.
$ chmod +x scripts/install.sh && scripts/install.sh- Talk to your
telegram botwith/startcommand to moving bot into your server.
$ BOT_TOKEN={your bot token} go run main.go$ make build
$ make docker