Mattermost PagerDuty Bot docs - contributing

For any problems with this charm, please report bugs here.

The code for this charm can be downloaded as follows:

git clone https://git.launchpad.net/charm-k8s-mm-pd-bot

Prepare your local environment

Notes for deploying a test setup locally using microk8s:

sudo snap install juju --classic
sudo snap install juju-wait --classic
sudo snap install microk8s --classic
sudo snap alias microk8s.kubectl kubectl
sudo snap install charmcraft
git clone https://git.launchpad.net/charm-k8s-mm-pd-bot

microk8s.reset  # Warning! Clean slate!
microk8s.enable dns dashboard registry storage
microk8s.status --wait-ready

juju bootstrap microk8s micro
juju add-model mm-pd-bot
juju model-config logging-config="<root>=DEBUG"
cd charm-k8s-mm-pd-bot
make build

Then, prepare a bot.cfg file (see the configuration section)

Then deploy:

juju deploy ./mm-pd-bot.charm  \
  --resource mm-pd-bot-image=mm-pd-bot/mm-pd-bot:devel \
  --config mm_pd_bot_cfg=@bot.cfg \
  --config external_hostname="my_mm_pd_bot.example.com" mm-pd-bot