Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ jobs:
-e ST2_HOSTNAME=${ST2_HOSTNAME} \
-e ST2_USERNAME=${ST2_USER} \
-e ST2_PASSWORD=${ST2_PASSWORD} \
-e SLACK_TOKEN=${SLACK_TOKEN} \
-e SLACK_TOKEN=${SLACK_BOT_TOKEN} \
-e SLACK_APP_TOKEN=${SLACK_APP_TOKEN} \
${DISTRO}-test test
- run:
name: Collect logs
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.hubot_history
.idea
debian/*.log
.vscode
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# StackStorm's st2chatops

This repository delivers [StackStorm Chatops](https://docs.stackstorm.com/chatops) in a form of packages and docker image. The package includes [hubot](https://hubot.github.com/), [hubot-stackstorm](https://github.com/StackStorm/hubot-stackstorm)
and pre-installed adapters for many Chat services.
and pre-installed adapters for Slack.

## Package

Expand Down Expand Up @@ -36,19 +36,11 @@ Where ${DISTRO} refers to flavor name. See [docker-compose.yml](docker-compose.y

export $ST2_HOSTNAME={MY_STACKSTORM_HOST_NAME}

* Use [`st2chatops.env`](st2chatops.env) to store the settings. The example uses Slack; set appropriate environment variables for other Chat Services:
[Slack](https://github.com/slackhq/hubot-slack),
[Microsoft Teams](https://github.com/Microsoft/BotFramework-Hubot),
[Cisco Spark](https://github.com/tonybaloney/hubot-spark),
[Flowdock](https://github.com/flowdock/hubot-flowdock),
[IRC](https://github.com/nandub/hubot-irc),
[XMPP](https://github.com/markstory/hubot-xmpp),
[RocketChat](https://www.github.com/RocketChat/hubot-rocketchat),
[Mattermost](https://github.com/loafoe/hubot-matteruser).

* Use [`st2chatops.env`](st2chatops.env) to store the settings.
[Slack](https://github.com/hubot-friends/hubot-slack),

* Use [scripts/st2chatops-docker-run.sh](scripts/st2chatops-docker-run.sh) to start the docker container instance.
The script is set for Slack; for other Chats, **edit it** to pass the environment variables as required for your Chat service adapter.
The script is set for Slack
Run the script, and ensure that hubot-stackstorm is running and there are no errors:

./st2chatops-docker-run.sh
Expand All @@ -62,7 +54,7 @@ Run the script, and ensure that hubot-stackstorm is running and there are no err

### Node Version

Grab your favorite Node.JS version (>=10.0, <=14.x), and pick your tag. Update `Dockerfile` as needed.
Grab your favorite Node.JS version (>=20.0), and pick your tag. Update `Dockerfile` as needed.

### Pre-Requsites

Expand All @@ -86,11 +78,6 @@ Grab your favorite Node.JS version (>=10.0, <=14.x), and pick your tag. Update `

* Step 4: Profit

### Updating

* `hubot-slack` is not compatible with coffeescript 2 ([issue](https://github.com/slackapi/hubot-slack/issues/526), [PR](https://github.com/slackapi/hubot-slack/pull/528)) yet, so keep the `coffee-script` dependency pinned to `1.12.7`
* `coffee-register` is required for dynamic `require`, but it cannot be updated past `1.0.0` because more recent versions (eg: `2.0.0`+) require coffeescript version `2.0.0`+

### Copyright, License, and Contributors Agreement

Copyright 2015-2019 Extreme Networks, Inc.
Expand Down
2 changes: 1 addition & 1 deletion bin/hubot
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ if [ ! -n "$HUBOT_ALIAS" ]; then
fi

# Keep st2chatops hack (ignored by hubot) for process discovery
exec $HERE/node_modules/.bin/hubot "$@" st2chatops
exec $HERE/node_modules/.bin/hubot "$@" -a @hubot-friends/hubot-slack st2chatops
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Packaging environments

focal:
build: ./packagingenv/focal
extends:
Expand Down
Loading