From 5561c5cc67e0ef5aee0438bde5e0e263dfcf9ff4 Mon Sep 17 00:00:00 2001 From: Christopher De Vries Date: Sat, 26 Sep 2020 12:12:19 -0400 Subject: [PATCH] Do a shallow checkout of version 0.9.5 of faasd in cloud-init. Replace the current git checkout with a checkout of the specific version and limit the depth to 1 for the installation. Signed-off-by: Christopher De Vries --- cloud-config.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-config.txt b/cloud-config.txt index acd6083..42bed01 100644 --- a/cloud-config.txt +++ b/cloud-config.txt @@ -17,7 +17,7 @@ runcmd: - mkdir -p /opt/cni/bin - curl -sSL https://github.com/containernetworking/plugins/releases/download/v0.8.5/cni-plugins-linux-amd64-v0.8.5.tgz | tar -xz -C /opt/cni/bin - mkdir -p /go/src/github.com/openfaas/ -- cd /go/src/github.com/openfaas/ && git clone https://github.com/openfaas/faasd && git checkout 0.9.5 +- cd /go/src/github.com/openfaas/ && git clone --depth 1 --branch 0.9.5 https://github.com/openfaas/faasd - curl -fSLs "https://github.com/openfaas/faasd/releases/download/0.9.5/faasd" --output "/usr/local/bin/faasd" && chmod a+x "/usr/local/bin/faasd" - cd /go/src/github.com/openfaas/faasd/ && /usr/local/bin/faasd install - systemctl status -l containerd --no-pager