mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 04:18:53 +00:00
kata-deploy: support kata-deploy for runtime-rs
support kata-deploy for runtime-rs Fixes:#5000 Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
This commit is contained in:
@@ -17,6 +17,7 @@ shims=(
|
||||
"fc"
|
||||
"qemu"
|
||||
"clh"
|
||||
"dragonball"
|
||||
)
|
||||
|
||||
default_shim="qemu"
|
||||
@@ -57,6 +58,7 @@ function install_artifacts() {
|
||||
echo "copying kata artifacts onto host"
|
||||
cp -a /opt/kata-artifacts/opt/kata/* /opt/kata/
|
||||
chmod +x /opt/kata/bin/*
|
||||
chmod +x /opt/kata/runtime-rs/bin/*
|
||||
}
|
||||
|
||||
function configure_cri_runtime() {
|
||||
@@ -98,7 +100,11 @@ function configure_different_shims_base() {
|
||||
fi
|
||||
fi
|
||||
|
||||
ln -sf /opt/kata/bin/containerd-shim-kata-v2 "${shim_file}"
|
||||
if [[ "${shim}" == "dragonball" ]]; then
|
||||
ln -sf /opt/kata/runtime-rs/bin/containerd-shim-kata-v2 "${shim_file}"
|
||||
else
|
||||
ln -sf /opt/kata/bin/containerd-shim-kata-v2 "${shim_file}"
|
||||
fi
|
||||
chmod +x "$shim_file"
|
||||
|
||||
if [ "${shim}" == "${default_shim}" ]; then
|
||||
|
Reference in New Issue
Block a user