This repo contains a sample of how to build custom extensions for Envoy. It assumes that you are building using bazel directly on a machine already provisioned with the proper tooling to build Envoy.
-
Edit the file
extensions_build_config.bzl
and comment out any extensions you don't want added -
From the Envoy repo, add the following command to the Bazel build command:
--override_repository envoy_build_config=<absolutePath>/envoy_custom
Example Command:
$ bazel --bazelrc=/dev/null build -c opt //source/exe:envoy-static.stripped --override_repository envoy_build_config=<absolutePath>/envoy_custom
$ mkdir -p build_release_stripped && cp bazel-bin/source/exe/envoy-static build_release_stripped/envoy
$ docker build -f ci/Dockerfile-envoy -t stevesloka/envoy:disext .