Slack bot for Kontena.
The bot is provided as Docker image which you can run pretty easily:
docker run \
--name kontena-slack-bot \
-e SLACK_TOKEN=xoxb-1243576874-XXXXXXXXXXXXXXXXXXX \
-e KONTENA_TOKEN=kontena-token \
-e KONTENA_URL=https://192.168.100.100:8443 \
-e KONTENA_GRID=my-grid \
-e SSL_IGNORE_ERRORS=true \
-e BOT_NAME=kontenabot \
-e ALLOWED_USERS=user1,user2 \
-e BOT_NAME=kontenabot \
-d jnummelin/kontena-slack-bot:latest
The env parameters are pretty self-explanatory I think. The ALLOWED_USERS is a comma separated list of Slack users that are allowed to control the bot. If you do not specify the list at all the bot thinks it's OK to allow anyone to control it.
The bot needs a token to connect to Slack, d'oh. :)
You can create the needed token in your Slack team settings: Settings -> Configure Apps -> Custom Integrations -> Bots
Remember to name your bot using the same name both on Slack and in the container.
It's self evident that this can be run also with Kontena. :) Simplest way to deploy it is using kontena stack install jussi/slackbot