NadekoBot/DockerGuide.md

48 lines
1.6 KiB
Markdown
Raw Normal View History

2016-08-01 15:55:38 +00:00
## Docker guide with digitalocean
#####Prerequisites:
2016-08-01 16:00:07 +00:00
- Digital ocean account (you can use my reflink to support the project and get 10$ after you register http://m.do.co/c/46b4d3d44795/ )
2016-08-01 15:55:38 +00:00
- Putty (get it here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
2016-08-01 15:57:50 +00:00
- A bot account - (follow http://discord.kongslien.net/guide.html)
2016-08-01 15:55:38 +00:00
- Common sense
Click on the create droplet button
![img](http://i.imgur.com/g2ayOcC.png)
pick one click apps and select docker on 14.04
![img](http://imgur.com/065Xkme.png)
- pick any droplet size you want (5$ will work ok-ish on a few servers)
- pick location closest to your discord server's location
- Pick a hostname
![img](http://imgur.com/ifPKB6p.png)
- click create
You will get an email from digitalocean with your creds now.
2016-08-01 15:57:50 +00:00
Open putty and type ip adress **you got in your email** with port 22
2016-08-01 15:55:38 +00:00
![img](http://imgur.com/Mh5ehsh.png)
2016-08-01 15:57:50 +00:00
console will open and you will be prompted for a username, type `root`
type in the password you got in the email
confirm the password you just typed in
type in the new password
confirm new password
2016-08-01 15:55:38 +00:00
2016-08-01 15:57:50 +00:00
when you are successfully logged in, type
2016-08-01 15:55:38 +00:00
`docker run --name nadeko -v /nadeko:/config uirel/nadeko`
2016-08-01 15:57:50 +00:00
wait for it to download and at one point it is going to start throwing errors due to credentials.json being empty
CTRL+C to exit that
type `docker stop nadeko`
type `nano /nadeko/credentials.json` and type in your credentials
CTRL+X then CTRL+Y to save
type `docker start nadeko`
2016-08-01 15:55:38 +00:00
Your bot is running, enjoy
2016-08-01 15:59:00 +00:00
*When you want to update the bot, just type `docker restart nadeko` as it always downloads latest prerelease*