From 9a664ea8bb6fd04384478840b3c62f884b2a9274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 13 Sep 2023 11:23:46 +0200 Subject: [PATCH] ci: nerdctl: Create the containerd config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we'll fail to configure kata-containers in the `install-kata` step. This is mostly needed because the nerdctl-full tarball doesn't provide a contaienrd configuration, just the binary, as contaienrd does not actually require a configuration file to run with the default config. Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit 46bc0b1c017b55a57b183bdbf3b158a60a1af156) --- tests/integration/nerdctl/gha-run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/nerdctl/gha-run.sh b/tests/integration/nerdctl/gha-run.sh index 6d1a32f24c..64b7c7cc6a 100644 --- a/tests/integration/nerdctl/gha-run.sh +++ b/tests/integration/nerdctl/gha-run.sh @@ -51,6 +51,11 @@ function install_dependencies() { # Start containerd service sudo systemctl daemon-reload sudo systemctl start containerd + + # Create the default containerd configuration + sudo mkdir -p /etc/containerd + containerd config default > sudo tee /etc/containerd/config.toml + sudo systemctl restart containerd } function run() {