Angush / trellobot

A Discord bot for logging Trello events. Note: this is no longer functional and not maintained. Forks may be more up-to-date.
52 stars 46 forks source link

Tweak structurue & Add docker support #15

Closed MatusBoa closed 2 years ago

MatusBoa commented 4 years ago

Hey,

so I decided to use your TrelloBot for logging Trello activity, also decided, it would be best to use Docker for running, so I added support for that.

Also tweaked structure a bit to make it more readable, all the logic is within src directory.

The problem I found using docker is that, you have to make sure .latestActivityID exists within src folder. If not, docker-compose.yml creates directory named .latestActivityID instead of file. I could not find solution to that, maybe someone will.

Running TrelloBot in docker is simple

First of all, image needs to be built: $ docker-compose build After that we can spin up container with: $ docker-compose up, for detached container just add -d flag, $ docker-compose up -d.


I can also update readme file, if you wish.