Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAM-825: upgrade openfga to latest v1.5.2 #5

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading