Skip to content
Syam.G.Krishnan edited this page Jan 20, 2017 · 4 revisions

How to run mattermost-github-integration

  1. create incoming webhooks on mattermost application,

  2. pass it to the container runtime as environment variables

  3. then create Webhooks from the github side points to [mattermost-github host].

##Environment variables REPO_NAMES : comma seperated repo names

HOOK_URLS : comma seperated urls to mattermost webhook

CHANNEL_NAMES : comma seperated channel names which should be notified

on docker:

$ docker run -e REPO_NAMES="team/reponame0, team/reponame1"
            -e HOOK_URL="url0, url1" \ 
            -e CHANNEL_NAME="channel0, channel1" \
            registry.centos.org/mattermost/mattermost-github-integration

on openshift:

Openshift Deployment config: https://github.com/syamgk/mattermost-github-integration/blob/deploy-config/mm-github.json

$ wget https://raw.githubusercontent.com/syamgk/mattermost-github-integration/deploy-config/mm-github.json
$ oc new-app -p REPOS="team/reponame0, team/reponame1",MMURLS="url0, url1",CHANNEL="channel0, channel1" -f mm-github.json
$ oc expose service github-mm-integration
Clone this wiki locally