mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
Minor fixes for installation
The containerd service was masked due to docker being installed on the host already. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
8db2e2a54f
commit
0d9c846117
8
hack/install.sh
Normal file → Executable file
8
hack/install.sh
Normal file → Executable file
@ -92,8 +92,8 @@ install_containerd() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
$SUDO systemctl unmask containerd || :
|
||||||
$SUDO curl -SLfs https://raw.githubusercontent.com/containerd/containerd/v1.3.5/containerd.service --output /etc/systemd/system/containerd.service
|
$SUDO curl -SLfs https://raw.githubusercontent.com/containerd/containerd/v1.3.5/containerd.service --output /etc/systemd/system/containerd.service
|
||||||
|
|
||||||
$SUDO systemctl enable containerd
|
$SUDO systemctl enable containerd
|
||||||
$SUDO systemctl start containerd
|
$SUDO systemctl start containerd
|
||||||
|
|
||||||
@ -129,8 +129,10 @@ install_faasd() {
|
|||||||
$SUDO curl -fSLs "https://raw.githubusercontent.com/openfaas/faasd/${version}/hack/faasd-provider.service" --output "hack/faasd-provider.service"
|
$SUDO curl -fSLs "https://raw.githubusercontent.com/openfaas/faasd/${version}/hack/faasd-provider.service" --output "hack/faasd-provider.service"
|
||||||
$SUDO curl -fSLs "https://raw.githubusercontent.com/openfaas/faasd/${version}/hack/faasd.service" --output "hack/faasd.service"
|
$SUDO curl -fSLs "https://raw.githubusercontent.com/openfaas/faasd/${version}/hack/faasd.service" --output "hack/faasd.service"
|
||||||
$SUDO /usr/local/bin/faasd install
|
$SUDO /usr/local/bin/faasd install
|
||||||
|
}
|
||||||
|
|
||||||
sleep 5
|
install_faas_cli() {
|
||||||
|
curl -sLS https://cli.openfaas.com | $SUDO sh
|
||||||
}
|
}
|
||||||
|
|
||||||
verify_system
|
verify_system
|
||||||
@ -141,4 +143,6 @@ echo "net.ipv4.conf.all.forwarding=1" | $SUDO tee -a /etc/sysctl.conf
|
|||||||
|
|
||||||
install_cni_plugins
|
install_cni_plugins
|
||||||
install_containerd
|
install_containerd
|
||||||
|
install_faas_cli
|
||||||
install_faasd
|
install_faasd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user