sudo snap install juju --classic
sudo snap install juju-wait --classic
sudo snap install microk8s --classic
sudo snap alias microk8s.kubectl kubectl
git clone https://git.launchpad.net/charm-k8s-mattermost
git clone https://git.launchpad.net/~mattermost-charmers/charm-k8s-mattermost/+git/image-build mattermost-image-build
microk8s.reset # Warning! Clean slate!
microk8s.enable dns dashboard registry storage
microk8s.status --wait-ready
microk8s.config | juju add-k8s myk8s --client
TODO ask microk8s to report the location of its registry
# Build your Mattermost image
docker build -t localhost:32000/mattermost ./mattermost-image-build
docker push localhost:32000/mattermost
juju bootstrap myk8s
juju add-model mattermost-test
juju deploy ~mattermost-charmers/mattermost --resource mattermost_image=localhost:32000/mattermost:latest mattermost
juju wait
juju status