-
Notifications
You must be signed in to change notification settings - Fork 4
/
rockcraft.yaml
52 lines (46 loc) · 1.36 KB
/
rockcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: identity-platform-admin-ui
base: bare
build-base: [email protected]
version: '1.21.0' # x-release-please-version
summary: Canonical Identity platform Admin UI
description: |
This is the Canonical Identity platform admin UI used for connecting
Ory Kratos with Ory Hydra.
license: Apache-2.0
platforms:
amd64:
services:
admin-ui:
override: replace
command: /usr/bin/identity-platform-admin-ui serve
startup: enabled
parts:
certificates:
plugin: nil
stage-packages:
- ca-certificates
go-build:
plugin: go
source: .
source-type: local
build-snaps:
- go/1.23/stable
- node/18/stable
build-packages:
- make
- git
override-build: |
make npm-build build
install -D -m755 ./app ${CRAFT_PART_INSTALL}/opt/identity-platform-admin-ui/bin/app
organize:
opt/identity-platform-admin-ui/bin/app: usr/bin/identity-platform-admin-ui
stage-packages:
- base-files_var
deb-security-manifest:
plugin: nil
after:
- certificates
override-prime: |
set -x
mkdir -p $CRAFT_PRIME/usr/share/rocks/
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query --admindir=$CRAFT_PRIME/var/lib/dpkg/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > $CRAFT_PRIME/usr/share/rocks/dpkg.query