Giter Site home page Giter Site logo

kontena-slack-bot's Introduction

kontena-slack-bot

Slack bot for Kontena docker orchestrator

Running

The bot is provided as Docker image which you can run pretty easily:

docker run -d -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 --name kontenabot 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.

Running with Kontena

It's self evident that this can be run also with Kontena. :) Here's example kontena.yml that gets things going:

kontenabot:
  image: jnummelin/kontena-slack-bot:latest
  environment:
    - SLACK_TOKEN=xoxb-1233425436437-dsjkudisudsa
    - KONTENA_TOKEN=kontena-token
    - KONTENA_URL=https://192.168.100.100:8443
    - KONTENA_GRID=test-grid
    - SSL_IGNORE_ERRORS=true
    - BOT_NAME=kontenabot
    - ALLOWED_USERS=user1,user2

kontena-slack-bot's People

Contributors

jnummelin avatar

Watchers

Tobias Gesellchen avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.