Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

alphagov/pay-performance-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pay Performance Slack

As of September 2021 this repository is no longer actively maintained by the GOV.UK Pay team.

Puts pay card performance stats into slack.

How to run

Specifying the slack channel

Use the CHANNEL environment variable, for example:

CHANNEL='#govuk-pay'

Node local

SLACK_URI='https://hooks.slack.com/services/:a/:b/:c' \
NODE_TLS_REJECT_UNAUTHORIZED=0 \
CONNECTOR_URL='https://localhost:9003'
node index.js

# SLACK_URI you will need to get from IT or from a password store
# CONNECTOR_URL will be different if you aren't using a standard tunnel
# NODE_TLS_REJECT_UNAUTHORIZED will stop TLS from verifying when running locally

Docker local

docker build -t govukpay/performance-slack:local

docker run \
       --rm \
       -it \
       --entrypoint 'ash' \
       --network host \
       -e NODE_TLS_REJECT_UNAUTHORIZED=0 \
       -e 'SLACK_URI=https://hooks.slack.com/services/:a/:b/:c' \
       -e 'CONNECTOR_URL=https://host.docker.internal:9003' \
       govukpay/performance-slack:local

# When in the shell
$ node index.js

# --network host is required to mount connector inside the container without extra_hosts trickery

About

No description or website provided.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published