Please refer to the rockcraft documentations to learn how to develop a rock.
Please install pre-commit
hooks to help enforce various validations:
pre-commit install -t commit-msg
You can build the rock using the following command:
rockcraft pack -v
Assuming the skopeo
has been
installed. Import the created rock into Docker:
sudo /snap/rockcraft/current/bin/skopeo --insecure-policy copy oci-archive:<local-rock-name>.rock docker-daemon:openfga:latest
Run an OpenFGA container using Docker:
docker run -d \
--rm \
--name <container-name> \
openfga:latest