Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.4 KB

File metadata and controls

56 lines (38 loc) · 1.4 KB

Build Instructions

Build Protocol Buffers

Automated Build

python3 -m venv .venv
source .venv/bin/activate
./proto-build.sh

Verify src/ contains: /envoy, /validate, /xds, /udpa

Manual Build (Step by Step)

If you prefer not to use proto-build.sh:

  1. Install protoc and tools

    See instructions if needed.

    uv sync --group proto
  2. Build Envoy protobufs

    Code to help pull and build is at: https://github.com/cetanu/envoy_data_plane.git. This builds envoy protos in src/envoy_data_plane_pb2/. Copy the envoy directory.

    cd ..
    git clone git@github.com:cetanu/envoy_data_plane.git
    cd envoy_data_plane
    python build.py
    cd ..
    cp -r envoy_data_plane/src/envoy_data_plane_pb2/envoy plugins-adapter/src/
  3. Get XDS protobufs

    This XDS repo contains python code for validate, xds, and udpa. Go to the python folder.

    git clone https://github.com/cncf/xds.git
    cp -rf xds/python/xds xds/python/validate xds/python/udpa plugins-adapter/src/
  4. Install dependencies and run

Ensure by this point you have the envoy, validate, xds, udpa python protobuf folders in src/ to run the external processor server (server.py).

uv sync
uv run python src/server.py