1a. Docker - shibdib/Firetail GitHub Wiki
Docker
I have no idea how this works and think it makes it more complicated, but it was requested... (I won't be able to give support if you use this, as I have no idea how it works)
-shibdib
Manual build
If you need to manually build the container, either because of development - or because you can't use the public docker hub (or because the container doesn't exist) then just do the following steps
- Clone the repo
- Go to the directory where the repo was cloned to
- run
docker build --no-cache -t shibdib/firetail .
Installation
To install the container, you either need to build it manually, or rely on the images built by docker hub. To install and run the container simply do the following
- run
docker run -it --rm -v /etc/firetail:/config shibdib/firetail - On first run, it will create the config file if it doesn't exist in the /etc/firetail directory - edit it with your token and run the bot again with the
docker run -it --rm -v /etc/firetail:/config shibdib/firetailcommand - then you will see the invite url, save this so you can invite the bot to your server(s) ctrl-cout of the container, and rundocker create --name firetail -v /etc/firetail:/config --restart always shibdib/firetailand thendocker start firetail- now you have a working container, that is always running
Manual update
You can manually update the container - albeit it's a bit cumbersome
docker stop firetaildocker rm firetaildocker pull shibdib/firetailTHIS STEP CAN BE REPLACED WITH THE MANUAL BUILD IF YOU WANTdocker create --name firetail -v /etc/firetail:/config --restart always shibdib/firetaildocker start firetail
Automatic update
However if you just want it to automatically update as soon as there is a new build on docker hub - you can use Watchtower (It also updates all your other containers - so beware of this
docker create --name watchtower --restart=always -v /var/run/docker.sock:/var/run/docker.sock -e WATCHTOWER_CLEANUP=true v2tec/watchtowerdocker start watchtower
And that's it :)