Build the OCI image:
docker build -t wordpress:test -f wordpress.Dockerfile .
Push the OCI image to microk8s:
sudo docker push localhost:32000/wordpress:test
Deploy the charm:
charmcraft pack
juju deploy ./wordpress-k8s_ubuntu-22.04-amd64.charm \
--resource jenkins-image=localhost:32000/wordpress:test
Run the following command:
echo -e "tox -e src-docs\ngit add src-docs\n" > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit