From b4bae58544c0980d33c02529b99f1c252b4b5ff2 Mon Sep 17 00:00:00 2001 From: Ivan Shvedunov Date: Thu, 6 Dec 2018 22:52:55 +0300 Subject: [PATCH] Support DIND_CRI=containerd in build/cmd.sh --- build/cmd.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/cmd.sh b/build/cmd.sh index 222aeea8f..3ab6236db 100755 --- a/build/cmd.sh +++ b/build/cmd.sh @@ -282,6 +282,9 @@ function prepare_node { fi ensure_build_container echo >&2 "Installing CRI proxy package in the node container (${node})..." + if [[ ${DIND_CRI:-} = containerd ]]; then + docker exec "${node}" /bin/bash -c 'echo criproxy-nodeps criproxy/primary_cri select containerd | debconf-set-selections' + fi docker exec "${node}" /bin/bash -c "curl -sSL '${CRIPROXY_DEB_URL}' >/criproxy.deb && dpkg -i /criproxy.deb && rm /criproxy.deb" docker exec "${node}" mount --make-shared /dind