gcloud compute instances create ubuntu-dev-machine --machine-type=n1-standard-16 --image-family="ubuntu-1804-lts" --image-project="ubuntu-os-cloud" --zone=us-central1-c --boot-disk-size=200GB --boot-disk-type=pd-ssd
gcloud compute ssh ubuntu-dev-machine
sudo apt-get update
sudo apt-get -y install build-essential
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker $USER
# logout, log back in
VERSION="1.14.3"
ARCH="amd64"
OS="linux"
curl -O https://dl.google.com/go/go${VERSION}.${OS}-${ARCH}.tar.gz
sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GOPATH=${HOME}/go
export PATH=$PATH:$(go env GOPATH)/bin
go get -v go.etcd.io/etcd
go get -v go.etcd.io/etcd/etcdctl
go get -u github.com/onsi/ginkgo/ginkgo
go get -u github.com/onsi/gomega/...
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes
# run tests
# ~/go/src/k8s.io/kubernetes$ make test-e2e-node PARALLELISM=1 FOCUS="\[Serial\]" SKIP="\[Flaky\]|\[Benchmark\]|\[NodeSpecialFeature:.+\]|\[NodeAlphaFeature:.+\]"
Last active
June 3, 2020 00:10
-
-
Save bobbypage/f922d2dea47912786ddc0a0d2fab0fd1 to your computer and use it in GitHub Desktop.
Setting up VM to run Node E2E tests locally
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment