Skip to content

Commit

Permalink
Fix #26: add hack script to prepare verification env
Browse files Browse the repository at this point in the history
  • Loading branch information
innobead committed Sep 24, 2020
1 parent 8ebf9de commit e6573e8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions hack/prepare-arm64-env.sh
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

0 comments on commit e6573e8

Please sign in to comment.