2016-10-10 00:44:50 +02:00
|
|
|
# Docker Guide with DigitalOcean
|
2016-08-01 17:55:38 +02:00
|
|
|
|
2016-10-10 00:44:50 +02:00
|
|
|
#####Prerequisites
|
2016-08-01 21:48:06 +02:00
|
|
|
- Digital ocean account (you can use my [reflink][reflink] to support the project and get 10$ after you register)
|
|
|
|
- [PuTTY][PuTTY]
|
|
|
|
- A bot account - follow this [guide][guide]
|
2016-08-01 21:49:50 +02:00
|
|
|
- $5
|
2016-08-01 21:49:35 +02:00
|
|
|
- Common sense
|
2016-08-01 21:48:54 +02:00
|
|
|
|
2016-08-01 21:49:35 +02:00
|
|
|
#####Guide
|
2016-08-01 21:48:06 +02:00
|
|
|
- Click on the create droplet button
|
2016-08-01 17:55:38 +02:00
|
|
|

|
|
|
|
|
2016-08-01 21:48:06 +02:00
|
|
|
- Pick one click apps and select docker on 14.04
|
2016-08-01 17:55:38 +02:00
|
|
|
|
|
|
|

|
|
|
|
|
2016-08-01 21:48:06 +02:00
|
|
|
- Pick any droplet size you want (5$ will work ok-ish on a few servers)
|
|
|
|
- Pick location closest to your discord server's location
|
2016-08-01 17:55:38 +02:00
|
|
|
- Pick a hostname
|
|
|
|

|
|
|
|
|
2016-08-01 21:48:06 +02:00
|
|
|
- Click create
|
2016-08-01 17:55:38 +02:00
|
|
|
|
2016-08-01 21:48:06 +02:00
|
|
|
You will get an email from DigitalOcean with your credentials now.
|
2016-08-01 17:55:38 +02:00
|
|
|
|
2016-08-01 17:57:50 +02:00
|
|
|
Open putty and type ip adress **you got in your email** with port 22
|
2016-08-01 17:55:38 +02:00
|
|
|
|
|
|
|

|
|
|
|
|
2016-08-01 21:48:06 +02: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 17:55:38 +02:00
|
|
|
|
2016-08-01 21:48:06 +02:00
|
|
|
- When you are successfully logged in, type
|
2016-08-01 17:55:38 +02:00
|
|
|
`docker run --name nadeko -v /nadeko:/config uirel/nadeko`
|
|
|
|
|
2016-08-01 21:48:06 +02: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-02 15:21:31 +02:00
|
|
|
- Type `docker logs -f nadeko` to see the console output
|
2016-08-01 17:55:38 +02:00
|
|
|
|
2016-08-01 21:48:06 +02:00
|
|
|
**Your bot is running, enjoy! o/**
|
2016-08-01 17:59:00 +02:00
|
|
|
|
|
|
|
*When you want to update the bot, just type `docker restart nadeko` as it always downloads latest prerelease*
|
2016-08-01 21:48:06 +02:00
|
|
|
|
|
|
|
[reflink]: http://m.do.co/c/46b4d3d44795/
|
|
|
|
[PuTTY]: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
|
|
|
|
[guide]: http://discord.kongslien.net/guide.html
|