python3 -m venv venv
source venv/bin/activate
pip install .
cos-alerter
Prepare the image:
rockcraft pack
skopeo --insecure-policy copy oci-archive:cos-alerter_0.2.0_amd64.rock docker-daemon:cos-alerter:0.2.0
Run:
cp config-defaults.yaml cos-alerter.yaml
# Update cos-alerter.yaml with appropriate values
docker run -p 8080:8080 --rm --mount type=bind,source="$(pwd)"/cos-alerter.yaml,target=/etc/cos-alerter.yaml,readonly -it cos-alerter:0.2.0
pip install tox
tox
python3 -m build .