Docker image for hosting rauchg's solution for slack channel badge.
Who, What and Why
You, if you use a Slack workspace to coordinate with your team.
A badge (like the one above - below the heading
team mates in a Slack channel.
It can be used as a landing page or redirect to the channel itself. Your team mates can quickly jump into the correct channel directly from the code repository.
And if nothing else... It's another shining badge for your repository.
Generate a Slack Legacy Token. This will allow you to query slack.
Generate a site key and a private key from the admin console in Google reCAPTCHA. This will allow you to prevent abuse to your new page.
Unless you plan on working locally only, which you probably aren't. You'll need to select and open a designated port on your router.
Also, It will probably be wise to get a proper dns name for your server and not rely on your public ip address.
Prepare your environment variables:
SLACK_SUBDOMAIN=Your Slack's subdomain SLACK_API_TOKEN=Your slack API token SLACK_CHANNELS=Comma-separated list of single channels to monitor GOOGLE_CAPTCHA_SECRET=Goggle reCAPTCHA secret key GOOGLE_CAPTCHA_SITEKEY=Goggle reCAPTCHA site key
docker run command, replacing the
8000 port (the left one) with your selected port,
Of course updating the environment variables with the "not-dummy" information:
docker run -d -p 8000:8000 \ -e SLACK_SUBDOMAIN=subdomain.slack.com \ -e SLACK_API_TOKEN=thisisADUmmytoKe1Nf89orr \ -e SLACK_CHANNELS=my_channel \ -e GOOGLE_CAPTCHA_SECRET=1AdumMySECRETADUMMysecReta2DUmmYsECR3etA \ -e GOOGLE_CAPTCHA_SITEKEY=1AdummySITEKEY23ADUMM4ysi5keAaDuMMy6si78 \ --name slackin_server tomerfi/slackin_docker:latest
That's it, Have Fun!