File tree 17 files changed +68
-53
lines changed
examples/hello-world-service
17 files changed +68
-53
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ steps:
24
24
mkdir -p /rootfs/usr/local/bin
25
25
cp -av crun /rootfs/usr/local/bin/crun
26
26
chmod +x /rootfs/usr/local/bin/crun
27
+
28
+ - |
29
+ mkdir -p /rootfs/etc/cri/conf.d
30
+ cp /pkg/crun.part /rootfs/etc/cri/conf.d/crun.part
27
31
test :
28
32
- |
29
33
mkdir -p /extensions-validator-rootfs
@@ -36,5 +40,3 @@ finalize:
36
40
to : /rootfs
37
41
- from : /pkg/manifest.yaml
38
42
to : /
39
- - from : /pkg/crun.part
40
- to : /rootfs/etc/cri/conf.d/crun.part
Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ steps:
44
44
45
45
cp ./bin/containerd-shim-runsc-v1 /rootfs/usr/local/bin/containerd-shim-runsc-v1
46
46
chmod +x /rootfs/usr/local/bin/containerd-shim-runsc-v1
47
+
48
+ - |
49
+ mkdir -p /rootfs/etc/cri/conf.d
50
+
51
+ cp /pkg/gvisor.part /pkg/runsc.toml /pkg/gvisor-kvm.part /pkg/runsc-kvm.toml /rootfs/etc/cri/conf.d/
47
52
test :
48
53
- |
49
54
mkdir -p /extensions-validator-rootfs
@@ -55,11 +60,3 @@ finalize:
55
60
to : /rootfs
56
61
- from : /pkg/manifest.yaml
57
62
to : /
58
- - from : /pkg/gvisor.part
59
- to : /rootfs/etc/cri/conf.d/gvisor.part
60
- - from : /pkg/runsc.toml
61
- to : /rootfs/etc/cri/conf.d/runsc.toml
62
- - from : /pkg/gvisor-kvm.part
63
- to : /rootfs/etc/cri/conf.d/gvisor-kvm.part
64
- - from : /pkg/runsc-kvm.toml
65
- to : /rootfs/etc/cri/conf.d/runsc-kvm.toml
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ steps:
59
59
- |
60
60
cd ${GOPATH}/src/github.com/kata-containers/src/runtime
61
61
cp containerd-shim-kata-v2 /rootfs/usr/local/bin/containerd-shim-kata-v2
62
+ - |
63
+ mkdir -p /rootfs/etc/cri/conf.d
64
+ cp /pkg/kata-containers.part /rootfs/etc/cri/conf.d/kata-containers.part
65
+
66
+ mkdir -p /rootfs/usr/local/share/kata-containers
67
+ cp /pkg/configuration.toml /rootfs/usr/local/share/kata-containers/configuration.toml
62
68
test :
63
69
- |
64
70
mkdir -p /extensions-validator-rootfs
@@ -70,7 +76,3 @@ finalize:
70
76
to : /rootfs
71
77
- from : /pkg/manifest.yaml
72
78
to : /
73
- - from : /pkg/kata-containers.part
74
- to : /rootfs/etc/cri/conf.d/kata-containers.part
75
- - from : /pkg/configuration.toml
76
- to : /rootfs/usr/local/share/kata-containers/configuration.toml
Original file line number Diff line number Diff line change 24
24
mkdir -p /rootfs/usr/local/bin
25
25
26
26
tar xf containerd-shim-spin.tar.gz -C /rootfs/usr/local/bin
27
+ - |
28
+ mkdir -p /rootfs/etc/cri/conf.d
29
+ cp /pkg/spin.part /rootfs/etc/cri/conf.d/spin.part
27
30
test :
28
31
- |
29
32
mkdir -p /extensions-validator-rootfs
@@ -35,5 +38,3 @@ finalize:
35
38
to : /rootfs
36
39
- from : /pkg/manifest.yaml
37
40
to : /
38
- - from : /pkg/spin.part
39
- to : /rootfs/etc/cri/conf.d/spin.part
Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ steps:
41
41
42
42
cp ./out/ctr-remote /rootfs/usr/local/lib/containers/stargz-snapshotter/ctr-remote
43
43
chmod +x /rootfs/usr/local/lib/containers/stargz-snapshotter/ctr-remote
44
+ - |
45
+ mkdir -p /rootfs/etc/cri/conf.d
46
+ cp /pkg/stargz-snapshotter.part /rootfs/etc/cri/conf.d/stargz-snapshotter.part
47
+
48
+ mkdir -p /rootfs/usr/local/etc/containerd-stargz-grpc
49
+ cp /pkg/config.toml /rootfs/usr/local/etc/containerd-stargz-grpc/config.toml
50
+
51
+ mkdir -p /rootfs/usr/local/etc/containers
52
+ cp /pkg/stargz-snapshotter.yaml /rootfs/usr/local/etc/containers/
44
53
test :
45
54
- |
46
55
mkdir -p /extensions-validator-rootfs
@@ -52,9 +61,3 @@ finalize:
52
61
to : /rootfs
53
62
- from : /pkg/manifest.yaml
54
63
to : /
55
- - from : /pkg/stargz-snapshotter.part
56
- to : /rootfs/etc/cri/conf.d/stargz-snapshotter.part
57
- - from : /pkg/config.toml
58
- to : /rootfs/usr/local/etc/containerd-stargz-grpc/config.toml
59
- - from : /pkg/stargz-snapshotter.yaml
60
- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ steps:
20
20
CGO_ENABLED=0 go build -o ./hello-world .
21
21
install :
22
22
- |
23
- mkdir -p /rootfs/usr/local/etc/containers
24
23
mkdir -p /rootfs/usr/local/lib/containers/hello-world
25
24
26
25
cp -p /pkg/src/hello-world /rootfs/usr/local/lib/containers/hello-world/
26
+ - |
27
+ mkdir -p /rootfs/usr/local/etc/containers
28
+
29
+ cp /pkg/hello-world.yaml /rootfs/usr/local/etc/containers/
27
30
test :
28
31
- |
29
32
mkdir -p /extensions-validator-rootfs
@@ -35,5 +38,3 @@ finalize:
35
38
to : /rootfs
36
39
- from : /pkg/manifest.yaml
37
40
to : /
38
- - from : /pkg/hello-world.yaml
39
- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change 63
63
rmdir /rootfs/usr/local/share
64
64
rmdir /rootfs/var/run
65
65
rmdir /rootfs/var
66
+ - |
67
+ mkdir -p /rootfs/usr/local/etc/containers
68
+ cp /pkg/qemu-guest-agent.yaml /rootfs/usr/local/etc/containers/
66
69
test :
67
70
- |
68
71
mkdir -p /extensions-validator-rootfs
@@ -74,5 +77,3 @@ finalize:
74
77
to : /rootfs
75
78
- from : /pkg/manifest.yaml
76
79
to : /
77
- - from : /pkg/qemu-guest-agent.yaml
78
- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ steps:
32
32
containerRoot=/rootfs/usr/local/lib/containers/xen-guest-agent
33
33
mkdir -p "$containerRoot"
34
34
mv target/{{ .ARCH }}-alpine-linux-musl/release/xen-guest-agent "$containerRoot/xen-guest-agent"
35
+ - |
36
+ mkdir -p /rootfs/usr/local/etc/containers
37
+
38
+ cp /pkg/xen-guest-agent.yaml /rootfs/usr/local/etc/containers/
35
39
test :
36
40
- |
37
41
mkdir -p /extensions-validator-rootfs
@@ -43,5 +47,3 @@ finalize:
43
47
to : /rootfs
44
48
- from : /pkg/manifest.yaml
45
49
to : /
46
- - from : /pkg/xen-guest-agent.yaml
47
- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change 37
37
cp -pr dist/tailscale /rootfs/usr/local/lib/containers/tailscale/usr/local/bin
38
38
cp -pr dist/tailscaled /rootfs/usr/local/lib/containers/tailscale/usr/local/bin
39
39
cp -pr dist/containerboot /rootfs/usr/local/lib/containers/tailscale/usr/local/bin
40
+ - |
41
+ mkdir -p /rootfs/usr/local/etc/containers
42
+ cp /pkg/tailscale.yaml /rootfs/usr/local/etc/containers/
40
43
test :
41
44
- |
42
45
mkdir -p /extensions-validator-rootfs
@@ -48,5 +51,3 @@ finalize:
48
51
to : /rootfs
49
52
- from : /pkg/manifest.yaml
50
53
to : /
51
- - from : /pkg/tailscale.yaml
52
- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change 18
18
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
19
19
install :
20
20
- |
21
- mkdir -p /rootfs
21
+ mkdir -p /rootfs/usr/local/etc/containers
22
+
23
+ cp /pkg/nvidia-persistenced.yaml /rootfs/usr/local/etc/containers/nvidia-persistenced.yaml
22
24
test :
23
25
- |
24
26
mkdir -p /extensions-validator-rootfs
28
30
finalize :
29
31
- from : /rootfs
30
32
to : /rootfs
31
- - from : /pkg/nvidia-persistenced.yaml
32
- to : /rootfs/usr/local/etc/containers/nvidia-persistenced.yaml
33
33
- from : /pkg/manifest.yaml
34
34
to : /
Original file line number Diff line number Diff line change @@ -49,10 +49,12 @@ steps:
49
49
ln -sv nvidia-container-runtime-wrapper /rootfs/usr/local/bin/$(basename $clean_file)
50
50
cp $clean_file /rootfs/usr/local/bin/$(basename $clean_file).real
51
51
done
52
+ - |
53
+ mkdir -p /rootfs/etc/cri/conf.d
54
+ cp /pkg/nvidia-container-runtime.part /rootfs/etc/cri/conf.d/nvidia-container-runtime.part
55
+
56
+ mkdir -p /rootfs/usr/local/etc/nvidia-container-runtime
57
+ cp /pkg/nvidia-container-runtime.toml /rootfs/usr/local/etc/nvidia-container-runtime/config.toml
52
58
finalize :
53
59
- from : /rootfs
54
60
to : /rootfs
55
- - from : /pkg/nvidia-container-runtime.part
56
- to : /rootfs/etc/cri/conf.d/nvidia-container-runtime.part
57
- - from : /pkg/nvidia-container-runtime.toml
58
- to : /rootfs/usr/local/etc/nvidia-container-runtime/config.toml
Original file line number Diff line number Diff line change 18
18
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
19
19
install :
20
20
- |
21
- mkdir -p /rootfs
21
+ mkdir -p /rootfs/usr/local/etc/containers
22
+ cp /pkg/nvidia-persistenced.yaml /rootfs/usr/local/etc/containers/nvidia-persistenced.yaml
22
23
test :
23
24
- |
24
25
mkdir -p /extensions-validator-rootfs
28
29
finalize :
29
30
- from : /rootfs
30
31
to : /rootfs
31
- - from : /pkg/nvidia-persistenced.yaml
32
- to : /rootfs/usr/local/etc/containers/nvidia-persistenced.yaml
33
32
- from : /pkg/manifest.yaml
34
33
to : /
Original file line number Diff line number Diff line change 40
40
41
41
cp etc/fabricmanager.cfg /rootfs/usr/local/share/nvidia/nvswitch/
42
42
43
+ cp /pkg/nvidia-fabricmanager.yaml /rootfs/usr/local/etc/containers/nvidia-fabricmanager.yaml
44
+
43
45
sed -i 's/DAEMONIZE=.*/DAEMONIZE=0/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
44
46
sed -i 's/STATE_FILE_NAME=.*/STATE_FILE_NAME=\/var\/run\/nvidia-fabricmanager\/fabricmanager.state/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
45
47
sed -i 's/TOPOLOGY_FILE_PATH=.*/TOPOLOGY_FILE_PATH=\/usr\/local\/share\/nvidia\/nvswitch/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
53
55
finalize :
54
56
- from : /rootfs
55
57
to : /rootfs
56
- - from : /pkg/nvidia-fabricmanager.yaml
57
- to : /rootfs/usr/local/etc/containers/nvidia-fabricmanager.yaml
58
58
- from : /pkg/manifest.yaml
59
59
to : /
Original file line number Diff line number Diff line change 40
40
41
41
cp etc/fabricmanager.cfg /rootfs/usr/local/share/nvidia/nvswitch/
42
42
43
+ cp /pkg/nvidia-fabricmanager.yaml /rootfs/usr/local/etc/containers/nvidia-fabricmanager.yaml
44
+
43
45
sed -i 's/DAEMONIZE=.*/DAEMONIZE=0/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
44
46
sed -i 's/STATE_FILE_NAME=.*/STATE_FILE_NAME=\/var\/run\/nvidia-fabricmanager\/fabricmanager.state/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
45
47
sed -i 's/TOPOLOGY_FILE_PATH=.*/TOPOLOGY_FILE_PATH=\/usr\/local\/share\/nvidia\/nvswitch/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
53
55
finalize :
54
56
- from : /rootfs
55
57
to : /rootfs
56
- - from : /pkg/nvidia-fabricmanager.yaml
57
- to : /rootfs/usr/local/etc/containers/nvidia-fabricmanager.yaml
58
58
- from : /pkg/manifest.yaml
59
59
to : /
Original file line number Diff line number Diff line change 80
80
rm -rf /rootfs/usr/local/etc
81
81
rm -rf /rootfs/usr/local/lib/nut
82
82
rm -rf /rootfs/usr/local/sbin
83
+ - |
84
+ mkdir -p /rootfs/usr/local/etc/containers
85
+ cp /pkg/nut-client.yaml /rootfs/usr/local/etc/containers/
83
86
test :
84
87
- |
85
88
mkdir -p /extensions-validator-rootfs
@@ -91,5 +94,3 @@ finalize:
91
94
to : /rootfs
92
95
- from : /pkg/manifest.yaml
93
96
to : /
94
- - from : /pkg/nut-client.yaml
95
- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change @@ -19,17 +19,18 @@ steps:
19
19
# cleanup
20
20
rm -rf /rootfs/usr/local/include
21
21
rm -rf /rootfs/usr/share
22
+ - |
23
+ mkdir -p /rootfs/usr/local/etc/containers
24
+
25
+ cp /pkg/iscsid.yaml /rootfs/usr/local/etc/containers/iscsid.yaml
26
+ cp /pkg/tgtd.yaml /rootfs/usr/local/etc/containers/tgtd.yaml
22
27
test :
23
28
- |
24
29
mkdir -p /extensions-validator-rootfs
25
30
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
26
31
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
27
32
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
28
33
finalize :
29
- - from : /pkg/iscsid.yaml
30
- to : /rootfs/usr/local/etc/containers/iscsid.yaml
31
- - from : /pkg/tgtd.yaml
32
- to : /rootfs/usr/local/etc/containers/tgtd.yaml
33
34
- from : /rootfs
34
35
to : /rootfs
35
36
- from : /pkg/manifest.yaml
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ steps:
18
18
mkdir -p /rootfs/lib/modules /rootfs/usr/local/lib/containers/zpool-importer
19
19
20
20
cp -R /lib/modules/* /rootfs/lib/modules
21
+ - |
22
+ mkdir -p /rootfs/usr/local/lib/containers
23
+
24
+ cp /pkg/zpool-importer.yaml /rootfs/usr/local/lib/containers/zpool-importer.yaml
21
25
test :
22
26
- |
23
27
mkdir -p /extensions-validator-rootfs
@@ -29,5 +33,3 @@ finalize:
29
33
to : /rootfs
30
34
- from : /pkg/manifest.yaml
31
35
to : /
32
- - from : /pkg/zpool-importer.yaml
33
- to : /rootfs/usr/local/etc/containers/zpool-importer.yaml
You can’t perform that action at this time.
0 commit comments