From c183ab15deec611f124b630a1bed11ff4a72c327 Mon Sep 17 00:00:00 2001 From: Poag Date: Wed, 11 Jan 2017 11:43:03 +0000 Subject: [PATCH] Updated guide with update instructions. --- docs/guides/Docker Guide.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/guides/Docker Guide.md b/docs/guides/Docker Guide.md index 9908a477..c689c2a5 100644 --- a/docs/guides/Docker Guide.md +++ b/docs/guides/Docker Guide.md @@ -8,7 +8,7 @@ Follow the respective guide for your operating system found here https://docs.do For this guide we will be using the folder /nadeko as our config root folder. ``` -docker create --name=nadeko -v /nadeko/data:/opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data -v /nadeko/credentials.json:/opt/NadekoBot/src/NadekoBot/credentials.json kwoth/nadeko:dev +docker create --name=nadeko -v /nadeko/data:/opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data -v /nadeko/credentials.json:/opt/NadekoBot/src/NadekoBot/credentials.json uirel/nadeko ``` -If you are coming from a previous version of nadeko (the old docker) make sure your crednetials.json has been copied into this directory and is the only thing in this folder. @@ -24,11 +24,27 @@ Once the log ends with "NadekoBot | Starting NadekoBot v1.0-rc2" the bot is read After a few moments you should be able to invite Nadeko to your server. If you cannot check the log file for errors -## Updates / Monitoring +## Monitoring -* Upgrade to the latest version of Nadeko simply `docker restart nadeko`. * Monitor the logs of the container in realtime `docker logs -f nadeko`. +## Updates + +* Manual +Updates are handled by pulling the new layer of the Docker Container which contains a pre compiled update to Nadeko. +The following commands are required for the default options +1. ```docker pull uirel/nadeko:latest``` +2. ```docker stop nadeko; docker rm nadeko``` +3. ```docker create --name=nadeko -v /nadeko/data:/opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data -v /nadeko/credentials.json:/opt/NadekoBot/src/NadekoBot/credentials.json uirel/nadeko``` +4. ```docker start nadeko``` + +* Automatic Updates +Automatic update are now handled by watchertower https://github.com/CenturyLinkLabs/watchtower +To setup watchtower to keep Nadeko up-to-date for you with the default settings use the following command +```docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock centurylink/watchtower --cleanup nadeko``` +This will check for updates to the docker every 5 minutes and update immediately. Alternatively using the ```--interval X``` command to change the interval, where X is the amount of time in seconds to wait. eg 21600 for 6 hours. + + If you have any issues with the docker setup, please ask in #help but indicate you are using the docker. For information about configuring your bot or its functionality, please check the http://nadekobot.readthedocs.io/en/latest guides.