-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #26: add hack script to prepare verification env
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
[[ $(uname -m) != "aarh64" ]] && echo "It's not ARM64 env!" > /dev/stderr && exit 1 | ||
|
||
echo "Installing packages ..." | ||
sudo apt update | ||
sudo apt install unzip | ||
sudo apt install cpu-checker | ||
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager | ||
sudo apt install make | ||
sudo apt install build-essential docker.io | ||
sudo apt install btrfs-progs libbtrfs-dev pkg-config libseccomp-dev | ||
|
||
sudo snap install --classic go | ||
sudo snap install --classic kubectl | ||
|
||
echo "Building containerd ARM64 artifacts ..." | ||
go get github.com/containerd/containerd | ||
cd "$(go env GOPATH)/src/github.com/containerd/containerd" | ||
git checkout -b v1.4.1 v1.4.1 | ||
make | ||
sudo make install | ||
|
||
echo "Building runc ARM64 artifacts ..." | ||
go get github.com/opencontainers/runc | ||
cd "$(go env GOPATH)/src/github.com/opencontainers/runc" | ||
make | ||
sudo make install | ||
|
||
echo "Installing Kubefire prerequisites ..." | ||
curl -sfSL https://raw.githubusercontent.com/innobead/kubefire/master/hack/install-release-kubefire.sh | bash | ||
kubefire install | ||
kubefire info |