-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathpkg.yaml
42 lines (40 loc) · 1.89 KB
/
pkg.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
name: crun
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- sources:
# {{ if eq .ARCH "aarch64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
- url: https://github.com/containers/crun/releases/download/{{ .CRUN_VERSION }}/crun-{{ .CRUN_VERSION }}-linux-arm64-disable-systemd
destination: crun
sha256: 19fa0707056b9672c1c8b31049861a97ccf7bb7e85836edcd71c7f9c63656214
sha512: dd1012431a74184da6af51f2563662d4e459258330d821a31961d27d728782b4881b90c91401bab541ba69f2b0e2868f5e2d29606a2edc4561615045ae06d700
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
- url: https://github.com/containers/crun/releases/download/{{ .CRUN_VERSION }}/crun-{{ .CRUN_VERSION }}-linux-amd64-disable-systemd
destination: crun
sha256: 17c22b5d941b7072739dd859a69b4038a6cd3c94d30cf093746ba059fcbdbf76
sha512: 4a95f0db65f9d8eb05d3959511432c80da77f0f7bf4c52b88f41a28ab86d375a920afaee9cf75718522bf69616ff192371b0b7d71f333b4ca9a7b75d63d49670
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
install:
- |
mkdir -p /rootfs/usr/local/bin
cp -av crun /rootfs/usr/local/bin/crun
chmod +x /rootfs/usr/local/bin/crun
- |
mkdir -p /rootfs/etc/cri/conf.d
cp /pkg/10-crun.part /rootfs/etc/cri/conf.d/10-crun.part
test:
- |
mkdir -p /extensions-validator-rootfs
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /