Skip to content
Image hosting rauchg's solution for slack badge
Makefile Shell Dockerfile
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
shellscripts
.dockerignore
.gitignore
.remarkrc
.spelling
.yamllint
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
LICENSE
Makefile
README.md
VERSION
container_structure.yml
package-lock.json
package.json
requirements.txt
tox.ini

README.md

tomfi-repo-logo

Slackin Docker
microbadger-docker-version microbadger-docker-license shields-io-docker-pulls
shields-io-maintenance self-hosted-slack-channel

Docker image for hosting rauchg's solution for slack channel badge.

Stage Badges
Builds circleci shields-io-docker-cloud-build-status
Pypi requires-io snyk-python
Npm david-dm-dev-package-json-dependencies-status snyk-npm greenkeeper-badge

Who, What and Why

Who

You, if you use a Slack workspace to coordinate with your team.

What

A badge (like the one above - below the heading ☝️) that demonstrates online/connected team mates in a Slack channel.

Why

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. 😎

Pre-requirements

  • 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.

Run

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

Simple 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! 😄

Say Thanks!

Contributors (👍), please check out the CONTRIBUTING.md file.

You can’t perform that action at this time.