afarentino / tatsu-hubot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tatsu HuBot

Idea: Setup HuBot inside a Docker container and run it on AWS. Automatically build and deploy it with CirclCI.

Circle CI Travis CI

Deploy manual to AWS ECS

  1. Setup new EC2 Container Instance as described here
  2. Register task definition aws ecs register-task-definition --cli-input-json file://$HOME/../hubot-aws-task.json
  3. Start task instances aws ecs run-task --cluster default --task-definition hubot:X --count 1

How to build and run it

docker build -t tatsu .
docker run -e HUBOT_SLACK_TOKEN=xxx -d tatsu

Add new scripts

  1. Add the following line in the dockerfile to install the NodeJS module:

    RUN npm install [MyHuBotModule] --save && npm install

  2. Extend the external-scripts.json file with the name of the NodeJS module:

[ "...", "MyHuBotModule" ]

Next steps

  • Persistent brain (Redis?)
  • Rights & Roles

About


Languages

Language:CoffeeScript 67.3%Language:Ruby 32.7%