Tatsu HuBot
Idea: Setup HuBot inside a Docker container and run it on AWS. Automatically build and deploy it with CirclCI.
Deploy manual to AWS ECS
- Setup new EC2 Container Instance as described here
- Register task definition aws ecs register-task-definition --cli-input-json file://$HOME/../hubot-aws-task.json
- 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
-
Add the following line in the dockerfile to install the NodeJS module:
RUN npm install [MyHuBotModule] --save && npm install
-
Extend the external-scripts.json file with the name of the NodeJS module:
[ "...", "MyHuBotModule" ]
Next steps
- Persistent brain (Redis?)
- Rights & Roles