gophergala2016/supbot

Name: supbot

Owner: gophergala2016

Description: Simple slack bot powered deployment tool with Sup

Created: 2016-01-23 01:27:30.0

Updated: 2018-05-02 08:50:44.0

Pushed: 2016-01-24 23:34:16.0

Homepage:

Size: 5277

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

supbot

Sup… Slack?

What is Sup?

Sup let's you execute commands on remote machines based on predefined and simple rules.

What is Supbot?

Supbot is a Slack bot that listens to Sup commands.

You can easily monitor, deploy, bring-up, bring-down, tail logs… on any environment, across any network directly from your Slack channel.

You can do anything Sup can do, directly from Slack.

screen shot 2016-01-24 at 3 27 42 pm

How about using a remote network and not only the local one? Yes:

screen shot 2016-01-24 at 4 01 04 pm

Checking out the repo
/projects
checkout https://github.com/gophergala2016/supbot.git
Obtaining a Slack token

Your deployment of the Slack bot will require a Slack bot token. This token will need to be set to the SLACK_TOKEN environment variable.

To obtain this token, you will need to sign into Slack and request a custom bot integration for your team's subdomain. At the time of writing (Jan 24 2016), you can start this process at the following URL:

https://[your-team-subdomain].slack.com/apps/build/custom-integration

Deploying to a server

You can use sup to deploy to a server as defined in the Supfile.

is is a portion of the supfile
orks:
.
od:
hosts:
  - deploy@162.243.9.244

 deploy

If you want to try it locally, use make docker to build the docker image, then use make docker-run to run this server locally.

K_TOKEN=yyy make docker-run
Deploying to Heroku
roku create
t push heroku master
roku open

or

Deploy

Make sure to set your SLACK_TOKEN env variable

roku config:set SLACK_TOKEN=xxx-xxyz-xxzy

ing config vars and restarting xxxx... done
K_TOKEN: xxx-xxyz-xxzy

roku config
xxxx Config Vars
K_TOKEN: xxx-xxyz-xxzy

Some pointers:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.