-
Notifications
You must be signed in to change notification settings - Fork 5
/
rockcraft.yaml
64 lines (61 loc) · 1.34 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
53
54
55
56
57
58
59
60
61
62
63
64
name: sdcore-nms
base: ubuntu@24.04
version: "1.1.0"
summary: SD-Core NMS
description: |
A Network Management System for managing the SD-Core 5G core network.
license: Apache-2.0
platforms:
amd64:
services:
nms:
command: webconsole [ -cfg /config/webuicfg.yaml ]
override: replace
startup: enabled
parts:
nms:
plugin: nil
source: .
stage-snaps:
- node/20/stable
build-snaps:
- node/20/stable
override-build: |
craftctl default
npm ci
npm run build
mkdir -p ${CRAFT_PART_INSTALL}/app
cp -r out/* ${CRAFT_PART_INSTALL}/app/
stage:
- app
prime:
- -app
webui:
after:
- nms
plugin: go
source: https://github.com/omec-project/webconsole.git
source-type: git
source-tag: v1.8.1
build-snaps:
- go/1.21/stable
go-buildtags:
- ui
stage-packages:
- libc6_libs
- base-files_lib
organize:
bin/cmd: bin/webui
override-build: |
rm -rf ${CRAFT_PART_BUILD}/ui/frontend_files/*
cp -r ${CRAFT_STAGE}/app/* ${CRAFT_PART_BUILD}/ui/frontend_files
craftctl default
version:
plugin: nil
override-build: |
mkdir -p ${CRAFT_PART_INSTALL}/etc/
echo ${CRAFT_PROJECT_VERSION} > ${CRAFT_PART_INSTALL}/etc/workload-version
organize:
"*": etc/
stage:
- etc/