Building Kubernetes on local

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)

Good on you for wanting to contribute to the Kubernetes project, first of all. My best piece of advice is to go the best place for advice :slight_smile: That would be Kubernetes slack, where the developers of the project hang out. You’ll find most of the people here are users of the projects, and not project devs.

Thanks, I’m trying my luck on the K8S slack as well.