Public Repository

Last pushed: 2 years ago
Short Description
Jarvis Slackbone is a SonarQube bot
Full Description

How to use this image

This images expects the following environment variables to be configured and passed on to the container:

environment comment on value for env key
SONAR_API_HOST use base host of sonar instance
SONAR_API_RESOURCE_KEY use the resource key on your SonarQube page
SLACK_API_TOKEN use the slack api token you generated on slack

Run Bot

The bot can be run locally in Textbot mode

docker run -it \
-e 'SONAR_API_HOST=https://nemo.sonarqube.org' \
-e 'SONAR_API_RESOURCE_KEY=org.codehaus.sonar-plugins:ebcdic-ascii-converter' \
-p 80:80 fvierbergen/jarvis-slackbone \
node --use_strict app.js --textbot

The bot can run in Slackbot mode

docker run -it \
-e 'SONAR_API_HOST=https://nemo.sonarqube.org' \
-e 'SONAR_API_RESOURCE_KEY=org.codehaus.sonar-plugins:ebcdic-ascii-converter' \
-e 'SLACK_API_TOKEN=placeholder' \
-p 80:80 fvierbergen/jarvis-slackbone \
node --use_strict app.js --slackbot

Deploy Bot

If no run mode is selected then the bot will default to Slackbot mode.
Deploy to aws with ecs-cli compose service up or run it locally with docker-compose up

jarvis-slackbot:
  image: fvierbergen/jarvis-slackbone
  mem_limit: "1000000000"
  restart: always
  ports:
    - "80:80"
  environment:
    - "SONAR_API_HOST=https://nemo.sonarqube.org"
    - "SONAR_API_RESOURCE_KEY=org.codehaus.sonar-plugins:ebcdic-ascii-converter"
    - "SLACK_API_TOKEN=placeholder"
Docker Pull Command
Owner
fvierbergen