Skip to content
Ondrej Fabry edited this page Sep 12, 2019 · 1 revision

Building vpp-agent with custom VPP build

To build your custom vpp-base image, you have to:

  • clone the vpp-base repository
  • build your VPP with patches (you can clone vpp repository in vpp-base and it will be ignored by git)
  • put all VPP .deb files from your <path-to-vpp>/build-root/ into ./custom/ directory of vpp-base
  • run docker build --tag vpp-base:myvpp custom

This will build vpp-base image with VPP installed from your debian packages including any required dependencies.

Next to use this image for vpp-agent, you have to:

  • modify vpp.env file and replace the VPP_IMG_XXX for the default VPP version with your own vpp-base image
  • run make images to build both developer and production images

The make images command supports defining VPP version and it should be defined if you are building for non-default VPP version, e.g. make images VPP_VERSION=1908. This is important, because the generated code for VPP binary API is verified during build and might fail if not compatible.

Clone this wiki locally