MeidokonWiki:

nadeko

Runs a Nadeko bot for Discord. Nadeko is written in C# and I don't want to deal with dotnet junk on Linux, so I'm using a Dockerised version of Nadeko.

The base OS is Vultr's Docker platform, so it's Centos 7 under the hood with Docker packages preinstalled. I run puppet against it to setup the shell niceties but the rest is pretty much stock.

How to build

We use this guide once it's time to install Nadeko: https://nadekobot.readthedocs.io/en/latest/guides/Docker%20Guide/

Updating the Nadeko code version

They'll publish updates every now and then as an updated Docker image. This should roughly do it (I haven't tested it for real yet).

  1. Pull the latest version (or a specific version if you prefer):

    docker pull uirel/nadeko:latest
  2. Stop and remove the existing container:

    docker stop nadeko; docker rm nadeko
  3. Create a new instance of the container. This keeps your old config DB and hooks it into the new instance:

    docker create --name=nadeko -v /opt/nadeko/conf/:/root/nadeko -v /opt/nadeko/data:/opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.1/data uirel/nadeko:1.4
    • Is this the right syntax? The version number may need updating at the end of the line.
  4. Start the new version of Nadeko and follow the logs:

    docker start nadeko; docker logs -f nadeko

MeidokonWiki: servers/nadeko (last edited 2017-10-11 09:18:19 by furinkan)