Skip to content

canonical/openfga-rock

Repository files navigation

OpenFGA rock

Container Registry Latest Version License

Release pre-commit Conventional Commits

This repository contains the packaging metadata for creating an OpenFGA rock built from Canonical OpenFGA release artifacts. For more information on rocks, visit the rockcraft GitHub.

Building the rock

The steps outlined below are based on the assumption that you are building the rock with the latest LTS of Ubuntu. If you are using another version of Ubuntu or another operating system, the process may be different.

Clone Repository

git clone [email protected]:canonical/openfga-rock.git
cd openfga-rock

Installing Prerequisites

sudo snap install rockcraft --edge
sudo snap install docker
sudo snap install lxd
sudo snap install skopeo --edge --devmode

Configuring Prerequisites

sudo usermod -aG docker $USER
sudo lxd init --auto

NOTE: You will need to open a new shell for the group change to take effect (i.e. su - $USER)

Packing and Running the rock

rockcraft pack
skopeo --insecure-policy copy oci-archive:openfga*.rock docker-daemon:<username>/openfga:<tag>
docker run --rm -it <username>/openfga:<tag>

License

The OpenFGA rock is free software, distributed under the Apache Software License, version 2.0. See LICENSE for more information.