mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
* Updates containerd to v1.7.0 and new binary for 32-bit Arm OSes. * Updates Go dependencies - openfaas and external Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
27 lines
1.4 KiB
Smarty
27 lines
1.4 KiB
Smarty
#cloud-config
|
|
package_update: true
|
|
|
|
packages:
|
|
- runc
|
|
- git
|
|
|
|
runcmd:
|
|
- curl -sLSf https://github.com/containerd/containerd/releases/download/v1.7.0/containerd-1.7.0-linux-amd64.tar.gz > /tmp/containerd.tar.gz && tar -xvf /tmp/containerd.tar.gz -C /usr/local/bin/ --strip-components=1
|
|
- curl -SLfs https://raw.githubusercontent.com/containerd/containerd/v1.7.0/containerd.service | tee /etc/systemd/system/containerd.service
|
|
- systemctl daemon-reload && systemctl start containerd
|
|
- /sbin/sysctl -w net.ipv4.conf.all.forwarding=1
|
|
- mkdir -p /opt/cni/bin
|
|
- curl -sSL https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-amd64-v0.9.1.tgz | tar -xz -C /opt/cni/bin
|
|
- mkdir -p /go/src/github.com/openfaas/
|
|
- mkdir -p /var/lib/faasd/secrets/
|
|
- echo ${gw_password} > /var/lib/faasd/secrets/basic-auth-password
|
|
- echo admin > /var/lib/faasd/secrets/basic-auth-user
|
|
- cd /go/src/github.com/openfaas/ && git clone --depth 1 --branch 0.16.2 https://github.com/openfaas/faasd
|
|
- curl -fSLs "https://github.com/openfaas/faasd/releases/download/0.16.2/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
|
|
- journalctl -u faasd-provider --no-pager
|
|
- systemctl status -l faasd-provider --no-pager
|
|
- systemctl status -l faasd --no-pager
|
|
- curl -sSLf https://cli.openfaas.com | sh
|
|
- sleep 5 && journalctl -u faasd --no-pager |