-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspec.yaml
50 lines (49 loc) · 1.14 KB
/
spec.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
appname: "vmihub"
entrypoints:
main:
cmd: "/usr/local/bin/vmihub --config /etc/eru/vmihub.toml"
restart: always
publish:
- "8080"
healthcheck:
http_port: "8080"
url: "/healthz"
code: 200
privileged: true
# log:
# type: "none"
# volumes:
# - /sys:/sys:ro
dns:
- 8.8.8.8
stages:
- build
- pack
builds:
build:
base: "golang:bookworm"
# only support ssh protocol
repo: "[email protected]:projecteru2/vmihub.git"
version: "HEAD"
dir: /go/src/github.com/projecteru2/vmihub
commands:
- apt-get update
- apt-get install -y libcephfs-dev librbd-dev librados-dev
- make deps
- make build
- ./bin/vmihub --version
cache:
/go/src/github.com/projecteru2/vmihub/bin/vmihub: /usr/local/bin/vmihub
pack:
base: debian:bookworm
labels:
ERU: 1
version: latest
app: vmihub
app_entry: vmihub_main
commands:
- apt-get update
- apt-get install -y ca-certificates libcephfs-dev librbd-dev librados-dev genisoimage qemu-utils
- update-ca-certificates
- mkdir -p /etc/eru/
- mkdir -p /etc/ceph