forked from ellanetworks/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrockcraft.yaml
More file actions
57 lines (51 loc) · 1.23 KB
/
rockcraft.yaml
File metadata and controls
57 lines (51 loc) · 1.23 KB
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
name: ella-core
base: bare
build-base: ubuntu@24.04
adopt-info: core-release-data
summary: Ella Core is a secure, reliable, and easy to operate mobile network.
description: Ella Core is a secure, reliable, and easy to operate mobile network.
platforms:
amd64:
arm64:
services:
ella-core:
override: replace
summary: Ella Core is a private mobile network.
command: core --config /core.yaml
startup: enabled
on-failure: restart
parts:
core:
plugin: go
source: .
source-type: local
build-packages:
- git
build-snaps:
- go/1.26/stable
- node/24/stable
stage-packages:
- libc6_libs
override-build: |
npm install --prefix ui
npm run build --prefix ui
REVISION=`git rev-parse HEAD`
go build -v -o ${CRAFT_PART_INSTALL}/bin/core -ldflags "-X github.com/ellanetworks/core/version.GitCommit=${REVISION}" ./cmd/core
ip:
plugin: nil
stage-packages:
- iproute2
iptables:
plugin: nil
stage-packages:
- iptables
core-release-data:
plugin: nil
source: .
override-build: |
version="$(cat version/VERSION)"
craftctl set version="$version"
config:
plugin: dump
source: config/
source-type: local