File tree Expand file tree Collapse file tree 17 files changed +68
-53
lines changed
examples/hello-world-service Expand file tree Collapse file tree 17 files changed +68
-53
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ steps:
2424 mkdir -p /rootfs/usr/local/bin
2525 cp -av crun /rootfs/usr/local/bin/crun
2626 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
2731 test :
2832 - |
2933 mkdir -p /extensions-validator-rootfs
@@ -36,5 +40,3 @@ finalize:
3640 to : /rootfs
3741 - from : /pkg/manifest.yaml
3842 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:
4444
4545 cp ./bin/containerd-shim-runsc-v1 /rootfs/usr/local/bin/containerd-shim-runsc-v1
4646 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/
4752 test :
4853 - |
4954 mkdir -p /extensions-validator-rootfs
@@ -55,11 +60,3 @@ finalize:
5560 to : /rootfs
5661 - from : /pkg/manifest.yaml
5762 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:
5959 - |
6060 cd ${GOPATH}/src/github.com/kata-containers/src/runtime
6161 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
6268 test :
6369 - |
6470 mkdir -p /extensions-validator-rootfs
@@ -70,7 +76,3 @@ finalize:
7076 to : /rootfs
7177 - from : /pkg/manifest.yaml
7278 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 2424 mkdir -p /rootfs/usr/local/bin
2525
2626 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
2730 test :
2831 - |
2932 mkdir -p /extensions-validator-rootfs
@@ -35,5 +38,3 @@ finalize:
3538 to : /rootfs
3639 - from : /pkg/manifest.yaml
3740 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:
4141
4242 cp ./out/ctr-remote /rootfs/usr/local/lib/containers/stargz-snapshotter/ctr-remote
4343 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/
4453 test :
4554 - |
4655 mkdir -p /extensions-validator-rootfs
@@ -52,9 +61,3 @@ finalize:
5261 to : /rootfs
5362 - from : /pkg/manifest.yaml
5463 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:
2020 CGO_ENABLED=0 go build -o ./hello-world .
2121 install :
2222 - |
23- mkdir -p /rootfs/usr/local/etc/containers
2423 mkdir -p /rootfs/usr/local/lib/containers/hello-world
2524
2625 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/
2730 test :
2831 - |
2932 mkdir -p /extensions-validator-rootfs
@@ -35,5 +38,3 @@ finalize:
3538 to : /rootfs
3639 - from : /pkg/manifest.yaml
3740 to : /
38- - from : /pkg/hello-world.yaml
39- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change 6363 rmdir /rootfs/usr/local/share
6464 rmdir /rootfs/var/run
6565 rmdir /rootfs/var
66+ - |
67+ mkdir -p /rootfs/usr/local/etc/containers
68+ cp /pkg/qemu-guest-agent.yaml /rootfs/usr/local/etc/containers/
6669 test :
6770 - |
6871 mkdir -p /extensions-validator-rootfs
@@ -74,5 +77,3 @@ finalize:
7477 to : /rootfs
7578 - from : /pkg/manifest.yaml
7679 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:
3232 containerRoot=/rootfs/usr/local/lib/containers/xen-guest-agent
3333 mkdir -p "$containerRoot"
3434 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/
3539 test :
3640 - |
3741 mkdir -p /extensions-validator-rootfs
@@ -43,5 +47,3 @@ finalize:
4347 to : /rootfs
4448 - from : /pkg/manifest.yaml
4549 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 3737 cp -pr dist/tailscale /rootfs/usr/local/lib/containers/tailscale/usr/local/bin
3838 cp -pr dist/tailscaled /rootfs/usr/local/lib/containers/tailscale/usr/local/bin
3939 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/
4043 test :
4144 - |
4245 mkdir -p /extensions-validator-rootfs
@@ -48,5 +51,3 @@ finalize:
4851 to : /rootfs
4952 - from : /pkg/manifest.yaml
5053 to : /
51- - from : /pkg/tailscale.yaml
52- to : /rootfs/usr/local/etc/containers/
Original file line number Diff line number Diff line change 1818 sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
1919 install :
2020 - |
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
2224 test :
2325 - |
2426 mkdir -p /extensions-validator-rootfs
2830finalize :
2931 - from : /rootfs
3032 to : /rootfs
31- - from : /pkg/nvidia-persistenced.yaml
32- to : /rootfs/usr/local/etc/containers/nvidia-persistenced.yaml
3333 - from : /pkg/manifest.yaml
3434 to : /
You can’t perform that action at this time.
0 commit comments