Hi All,
I am trying my hands at building the Kubernetes code locally and running all the unit tests locally as part of my development environment setup, in order to be prepared for contributing to Kubernetes.
I am facing some challenges and was wondering if any of you have tried and succeeded at this before.
I’m trying the build on a containerized build environment using Docker on MacOS as per the instructions at the Building Kubernetes page.
I have provisioned my Docker VM with 10 vCPU, 8 GB Memory and 120 GB storage.
build/run.sh make
runs successfully.
In order to run the unit tests, I execute the following:
build/run.sh make test
This results in two unit tests failing.
FAIL [k8s.io/kubernetes/pkg/registry/storage/csinode/storage](http://k8s.io/kubernetes/pkg/registry/storage/csinode/storage) 5.121s
FAIL [k8s.io/kubernetes/vendor/k8s.io/legacy-cloud-providers/azure](http://k8s.io/kubernetes/vendor/k8s.io/legacy-cloud-providers/azure) 180.093s
I’ve attached the logs, if anyone has any pointers that can help all the unit tests to pass on the local machine, it would be of great help.
kubernetes-local-build-docker.pdf (203.1 KB)