forked from rauchg/slackin
-
Notifications
You must be signed in to change notification settings - Fork 0
OpenShift
Benjamin Lupton edited this page Sep 21, 2015
·
3 revisions
To use slackin on OpenShift, follow these instructions:
-
Create your OpenShift account and install their client tools
-
Create a new OpenShift application for slackin:
rhc app-create slackin https://raw.githubusercontent.com/kyrylkov/openshift-iojs/master/metadata/manifest.yml
- Identify the following variable values:
-
SLACK_SUBDOMAIN
: Your Slack's subdomain (thethis
part inthis.slack.com
), -
SLACK_API_TOKEN
: A Slack API token (find it on https://api.slack.com/web) -
SLACK_CHANNELS
(optional): Comma-separated list of single guest channels to invite them to (leave blank for a normal, all-channel invite). In order to make this work, you have to have a paid account. You'll only be able to invite as many people as your number of paying members times 5.
And set them for the app using:
rhc env-set -a slackin SLACK_API_TOKEN="$SLACK_API_TOKEN" SLACK_SUBDOMAIN="$SLACK_SUBDOMAIN" SLACK_CHANNELS="$SLACK_CHANNELS"
- If you'd like a custom domain, run:
rhc alias-add $SLACK_CUSTOM_DOMAIN -a slackin
Where $SLACK_CUSTOM_DOMAIN
is something like slack.bevry.me
where bevry.me
is your domain name. Then create CNAME record with your DNS host pointing slack.YOUR_DOMAIN.COM
to slackin-YOUR_OPENSHIFT_NAMESPACE.rhcloud.com
- Deploy slackin to your app:
git clone https://github.com/balupton/slackin.git -b feature-openshift
cd slackin
git remote add openshift `rhc app-show slackin | grep Git | sed 's/^.*ssh/ssh/'`
git push openshift feature-openshift:master --force
cd ..
rm -Rf slackin
- You should be all good now! Check the logs of your app with:
rhc tail -a slackin