What can I help you with?
DOCA Platform Framework

Local Development

This guide helps the developer in setting and running a local env that can be used to deploy the various DPF components and run tests. The local env doesn't require a DPU.

  1. Go to your local dev project git repo

Copy
Copied!
            

cd <path_to_local_repo/doca-platform-foundation

  1. export minikube env vars (Linux):

Copy
Copied!
            

export REGISTRY=<insert_your_registry> export MINIKUBE_CNI=flannel export MINIKUBE_DRIVER=docker export MINIKUBE_DOCKER_MIRROR="https://registry-1.docker.io" export DEPLOY_KSM=true export DEPLOY_GRAFANA=true export DEPLOY_PROMETHEUS=true export IMAGE_PULL_KEY=<IMAGE_PULL_TOKEN> export TAG=v0.1.0-$(git rev-parse --short HEAD)-$USER-test

Note: For MAC users add:

Copy
Copied!
            

export MINIKUBE_EXTRA_ARGS="--network=socket_vmnet"

On Mac the development environment is designed to work with Docker Desktop running with Apple Virtualization.

  1. Generate all

Copy
Copied!
            

make generate

  1. Build images required for the quick DPF e2e test.

Copy
Copied!
            

make test-release-e2e-quick

  1. Deploy Minikube

Copy
Copied!
            

make clean-test-env test-env-e2e

  1. Deploy DPF Operator

Copy
Copied!
            

make test-deploy-operator-helm

  1. Run e2e tests

Copy
Copied!
            

make test-e2e

Note: If you want to keep the created resources (e.g., DPFOperatorConfig, DPU and such) you can use the environment variable E2E_SKIP_CLEANUP=true

Copy
Copied!
            

E2E_SKIP_CLEANUP=true make test-e2e

  1. Clean Minikube env

Copy
Copied!
            

make clean-test-env

  1. the make target clean-test-env is stuck

try with:

Copy
Copied!
            

minikube delete --all --alsologtostderr

  1. Enable metrics API in minikube

Copy
Copied!
            

minikube -p dpf-test addons enable metrics-server

  1. Machine Doesn't Have Enough Resources To Run Minikube:

Reduce the Resource Demands of Minikube. e.g.,

Copy
Copied!
            

export NODE_MEMORY=4g export NODE_CPUS=2 export NODE_DISK=50g make test-env-e2e

© Copyright 2025, NVIDIA. Last updated on May 19, 2025.