Giter VIP home page Giter VIP logo

bunsen's Introduction

Dr Bunsen Honeydew

Slack bot extraordinaire, at your service.

This is a simple Slackbot, based on hubot, and the k8s config required to stand him up.

Customization

There are two ways to customize this bot. The simplest is just to add existing scripts from the NPM registry.

  1. Find the script you want and learn how to configure it.
    • Environment variables will go in k8s/deployment.yaml.
  2. Add the name of the script to external-scripts.json.
  3. Add the script and any dependencies to the npm install call in the Dockerfile.

You can also write a custom script.

  1. Write the script in the scripts directory.
    • Don't add this to external-scripts.json, that happens automatically.
  2. Add any dependencies to the npm install call in the Dockerfile.
  3. Add any environment variables needed to k8s/deployment.yaml.

Building and testing

  • Build the image with rake docker:build.
  • Run the bot locally for testing with rake docker:run. This will drop you into a shell bot simulator where you can "direct message" with the bot.
  • If you need filesystem access, you can run the image directly:
    • docker run -it puppetlabs/bunsen /bin/sh
    • Start the shell with bin/hubot

Publishing

This requires push access to the puppet-community GCR namespace. Setting that up is out of scope for this document. You'll also need to be a slack admin to recycle the bot.

  1. rake docker:push
  2. Wait 30 seconds
  3. In slack: @bunsen restart

Yes, this process will be improved shortly.

bunsen's People

Contributors

binford2k avatar russellshackleford avatar yakatz avatar

Watchers

 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.