mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
Fix installation script for containerd on armhf
Fixes #295 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
9564e64980
commit
2e04febf5b
@ -84,9 +84,21 @@ install_cni_plugins() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_containerd() {
|
install_containerd() {
|
||||||
CONTAINERD_VER=v1.6.4
|
|
||||||
$SUDO systemctl unmask containerd || :
|
$SUDO systemctl unmask containerd || :
|
||||||
$SUDO $ARKADE system install containerd --systemd --version ${CONTAINERD_VER} --progress=false
|
|
||||||
|
CONTAINERD_VER=1.6.4
|
||||||
|
arch=$(uname -m)
|
||||||
|
if[ $arch == "armv7l"]; then
|
||||||
|
$SUDO curl -fSLs "https://github.com/alexellis/containerd-arm/releases/download/v${version}/containerd-${version}-linux-armhf.tar.gz" --output "/tmp/containerd.tar.gz"
|
||||||
|
$SUDO tar -xvf /tmp/containerd.tar.gz -C /usr/local/bin/
|
||||||
|
$SUDO curl -fSLs https://raw.githubusercontent.com/containerd/containerd/v${version}/containerd.service --output "/etc/systemd/system/containerd.service"
|
||||||
|
$SUDO systemctl enable containerd
|
||||||
|
$SUDO systemctl start containerd
|
||||||
|
else
|
||||||
|
$SUDO $ARKADE system install containerd --systemd --version v${CONTAINERD_VER} --progress=false
|
||||||
|
fi
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user