Skip to content

Commit

Permalink
Merge pull request #5 from canonical/IAM-825
Browse files Browse the repository at this point in the history
IAM-825: upgrade openfga to latest v1.5.2
  • Loading branch information
shipperizer authored Apr 8, 2024
2 parents f2cacbe + d5fdddf commit 0b96458
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 19 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/push_main.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@ name: Push (main)
on:
push:
branches:
- main
- "main"
- "release-**"
tags:
- "v**"
paths:
- "rockcraft.yaml"
- ".github/workflows/**.yaml"
pull_request:
branches:
- "*"
workflow_dispatch:

jobs:
build:
uses: ./.github/workflows/build.yaml

publish:
if: ${{ (github.ref == 'refs/heads/main') || (github.ref_type == 'tag') }}
needs: build
uses: ./.github/workflows/publish.yaml

scan:
if: ${{ (github.ref == 'refs/heads/main') || (github.ref_type == 'tag') }}
needs: publish
uses: ./.github/workflows/scan.yaml
16 changes: 0 additions & 16 deletions .github/workflows/push_any.yaml

This file was deleted.

47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# OpenFGA ROCK

[![Release](https://github.com/canonical/openfga-rock/actions/workflows/ci.yaml/badge.svg)](https://github.com/canonical/openfga-rock/actions/workflows/ci.yaml)
[![Container Registry](https://img.shields.io/badge/Container%20Registry-published-blue)](https://github.com/canonical/openfga-rock/pkgs/container/openfga)


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](https://github.com/canonical/rockcraft).



## 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
```bash
git clone git@github.com:canonical/openfga-rock.git
cd openfga-rock
```

### Installing Prerequisites
```bash
sudo snap install rockcraft --edge
sudo snap install docker
sudo snap install lxd
sudo snap install skopeo --edge --devmode
```

### Configuring Prerequisites
```bash
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
```bash
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](https://github.com/canonical/zookeeper-rock/blob/3.6/stable/LICENSE)
for more information.
4 changes: 2 additions & 2 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: openfga
base: bare
build-base: ubuntu@22.04
version: "1.3.9"
version: "1.5.2"
summary: Openfga Authorization Server
description: |
OpenFGA is a flexible Authorization system inspired by Google's Zanzibar, designed for reliability and low latency at scale.
Expand Down Expand Up @@ -46,7 +46,7 @@ parts:
- CGO_ENABLED: 0
source: https://github.com/openfga/openfga
source-type: git
source-tag: v1.3.9
source-tag: v1.5.2
override-build: |
src_config_path="github.com/openfga/openfga/internal"
build_ver="${src_config_path}/build.Version"
Expand Down

0 comments on commit 0b96458

Please sign in to comment.