From 7def0b1d46bfd753ae29d1375f7b1c9efd4bb9a7 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 11 Feb 2021 10:54:22 +0100 Subject: [PATCH] Add kata install feedback --- docker-install-all.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-install-all.sh b/docker-install-all.sh index dd68709..fbb443f 100755 --- a/docker-install-all.sh +++ b/docker-install-all.sh @@ -26,11 +26,13 @@ mem=$(sed -E 's/^MemTotal: +([0-9]+) kB/\1/p;d' < /proc/meminfo) mempercore=$(((mem/1024-4096)/cores)) # install kata containers +echo "Installing kata...." cid=$(docker run -d --runtime=runc -v /opt/kata:/opt/kata -v /var/run/dbus:/var/run/dbus -v /run/systemd:/run/systemd -v /etc/docker:/etc/docker -it katadocker/kata-deploy kata-deploy-docker install) # wait for finish while [ "$(docker container inspect -f '{{.State.Running}}' "$cid")" == "true" ]; do sleep 1 done +echo "Kata installed" # update default container CPU and memory sed -i "s/default_vcpus = .*/default_vcpus = 2/g;s/default_memory = .*/default-memory = $mempercore/g" /opt/kata/share/defaults/kata-containers/configuration-qemu-virtiofs.toml