-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: openfga | ||
base: bare | ||
build-base: ubuntu:22.04 | ||
version: "1.3.3" | ||
summary: Openfga Authorization Server | ||
description: | | ||
OpenFGA is a flexible Authorization system inspired by Google's Zanzibar, designed for reliability and low latency at scale. | ||
license: Apache-2.0 | ||
run-user: _daemon_ | ||
platforms: | ||
amd64: | ||
|
||
services: | ||
openfga: | ||
override: replace | ||
command: openfga run | ||
startup: disabled | ||
checks: | ||
up: | ||
override: replace | ||
level: alive | ||
exec: | ||
command: grpc_health_probe -addr localhost:8081 | ||
|
||
|
||
parts: | ||
util: | ||
plugin: nil | ||
stage-packages: | ||
# This is needed to pipe the stdout/stderr to a file for log forwarding | ||
- coreutils | ||
prime: | ||
- usr/bin/tee | ||
|
||
shell: | ||
plugin: nil | ||
stage-packages: | ||
# This is needed to pipe the stdout/stderr to a file for log forwarding | ||
- dash | ||
|
||
sed: | ||
plugin: nil | ||
stage-packages: | ||
- sed | ||
|
||
openfga: | ||
plugin: go | ||
build-snaps: | ||
- go/1.21/stable | ||
build-environment: | ||
- CGO_ENABLED: 0 | ||
source: https://github.com/openfga/openfga | ||
source-type: git | ||
source-tag: v1.3.3 | ||
override-build: | | ||
go build -o ${CRAFT_PART_INSTALL}/bin/openfga ./cmd/openfga | ||
grpc_health_probe: | ||
plugin: go | ||
build-snaps: | ||
- go/1.21/stable | ||
build-environment: | ||
- CGO_ENABLED: 0 | ||
source: https://github.com/grpc-ecosystem/grpc-health-probe | ||
source-type: git | ||
source-tag: v0.4.21 | ||
override-build: | | ||
go build -a -tags netgo -ldflags=-w -o ${CRAFT_PART_INSTALL}/bin/grpc_health_probe |