dockernize https://github.com/hakobera/redashbot
100K+
Redashbot V2 is a open-source slack bot for Redash.
(The original work is by hakobera/redashbot, but it is currently not maintained. I rewrote almost all of the code.)

@botname <Query URL>#<Viz ID>
@redash https://your-redash-server.example.com/queries/1#2@botname <Dashboard URL>
@redash https://your-redash-server.example.com/dashboards/dashboard-name@botname <Query URL>#table
@redash https://your-redash-server.example.com/queries/1#tableYou must create an app and set environment variables SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET.
Then, npm start or docker run yamitzky/redashbot:2.0.0 to start. If you use Docker, do not forget to feed environment variable via -e or .env file.
Slack's bot token.
Slack's sigining secret.
Redash's URL and its API Key.
Redash' URL accessible from the bot.
If you want to use multiple Redash at once, specify this variable like below
REDASH_HOSTS_AND_API_KEYS="http://redash1.example.com;TOKEN1,http://redash2.example.com;TOKEN2"
or if you need to specify REDASH_HOST_ALIAS for each Redash, like below
REDASH_HOSTS_AND_API_KEYS="http://redash1.example.com;http://redash1-alias.example.com;TOKEN1,http://redash2.example.com;TOKEN2"
Milliseconds to wait loading finished before capturing.
chromium, firefox or webkit. default is chromium
Clone this repository, then
$ npm install
$ export REDASH_HOST=https://your-redash-server.example.com
$ export REDASH_API_KEY=your-redash-api-key
$ export SLACK_BOT_TOKEN=your-slack-bot-token
$ node index.js
Redashbot is just a node program.
npm start
Docker image is provided. Currently, latest tag is used for v1(old), then you must use 2.0.0 or something like that.
docker run -it --rm -e SLACK_BOT_TOKEN=$SLACK_BOT_TOKEN -e SLACK_SIGNING_SECRET=$SLACK_SIGNING_SECRET -e REDASH_HOSTS_AND_API_KEYS=$REDASH_HOSTS_AND_API_KEYS -p 3000:3000 yamitzky/redashbot:2.0.0
docker-compose is also provided.
docker-compose up
You can easy to deploy redashbot to Heroku, just click following button.
Content type
Image
Digest
sha256:72916624d…
Size
1.4 GB
Last updated
about 1 year ago
docker pull yamitzky/redashbot