mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
35 lines
614 B
Bash
35 lines
614 B
Bash
#!/bin/bash
|
|
|
|
|
|
# See pre-reqs:
|
|
# https://github.com/alexellis/containerd-arm
|
|
|
|
export ARCH="arm64"
|
|
|
|
if [ ! -d "/usr/local/go/bin" ]; then
|
|
curl -sLS https://get.arkade.dev | sudo sh
|
|
sudo -E arkade system install go
|
|
else
|
|
echo "Go already present, skipping."
|
|
fi
|
|
|
|
export GOPATH=$HOME/go/
|
|
export PATH=$PATH:/usr/local/go/bin/
|
|
|
|
go version
|
|
|
|
echo "Building containerd"
|
|
|
|
mkdir -p $GOPATH/src/github.com/containerd
|
|
cd $GOPATH/src/github.com/containerd
|
|
git clone https://github.com/containerd/containerd
|
|
|
|
cd containerd
|
|
git fetch origin --tags
|
|
git checkout v1.7.27
|
|
|
|
make
|
|
sudo make install
|
|
|
|
sudo containerd --version
|