diff --git a/Dockerfile b/Dockerfile index 956da1d..8e227fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ RUN CC="zig cc -target aarch64-linux-gnu" CXX="zig c++ -target aarch64-linux-gnu RUN CC="zig cc -target x86_64-linux-gnu" CXX="zig c++ -target x86_64-linux-gnu" CGO_ENABLED=1 GOARCH=amd64 go build -buildmode=c-shared -o /build/amd64_libgo_module.so . ##### Build the final image ##### -FROM envoyproxy/envoy:dev-78fc79f72c883549cd6b29db11e02e6fb74c63d0 AS envoy +FROM envoyproxy/envoy:v1.36.2 AS envoy ARG TARGETARCH ENV ENVOY_DYNAMIC_MODULES_SEARCH_PATH=/usr/local/lib COPY --from=rust_builder /build/${TARGETARCH}_librust_module.so /usr/local/lib/librust_module.so diff --git a/ENVOY_VERSION b/ENVOY_VERSION index ded22bd..fce2ecc 100644 --- a/ENVOY_VERSION +++ b/ENVOY_VERSION @@ -1 +1 @@ -78fc79f72c883549cd6b29db11e02e6fb74c63d0 \ No newline at end of file +dc2d3098ae5641555f15c71d5bb5ce0060a8015c \ No newline at end of file diff --git a/README.md b/README.md index 82cc8e5..1c9bf17 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # Dynamic Modules Examples -> Envoy Version: [78fc79f72c883549cd6b29db11e02e6fb74c63d0] v1.36-dev +> Envoy Version: [dc2d3098ae5641555f15c71d5bb5ce0060a8015c] v1.36.2 > > Since dynamic modules are tied with a specific Envoy version, this repository is based on the specific commit of Envoy. > For examples for a specific Envoy version, please check out `release/v` branches: > * [`release/v1.34`](https://github.com/envoyproxy/dynamic-modules-examples/tree/release/v1.34) > * [`release/v1.35`](https://github.com/envoyproxy/dynamic-modules-examples/tree/release/v1.35) +> * [`release/v1.36`](https://github.com/envoyproxy/dynamic-modules-examples/tree/release/v1.36) This repository hosts examples of dynamic modules for [Envoy] to extend its functionality. The high level documentation is available [here][High Level Doc]. In short, a dynamic module is a shared library @@ -89,6 +90,6 @@ If you want to explicitly specify the docker image, use `ENVOY_IMAGE` environmen ENVOY_IMAGE=foo-bar-image:latest go test . -v -count=1 ``` -[78fc79f72c883549cd6b29db11e02e6fb74c63d0]: https://github.com/envoyproxy/envoy/tree/78fc79f72c883549cd6b29db11e02e6fb74c63d0 +[dc2d3098ae5641555f15c71d5bb5ce0060a8015c]: https://github.com/envoyproxy/envoy/tree/dc2d3098ae5641555f15c71d5bb5ce0060a8015c [Envoy]: https://github.com/envoyproxy/envoy [High Level Doc]: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/dynamic_modules diff --git a/go/gosdk/abi.go b/go/gosdk/abi.go index 05bb38d..9ba223f 100644 --- a/go/gosdk/abi.go +++ b/go/gosdk/abi.go @@ -3,7 +3,7 @@ package gosdk // Following is a distillation of the Envoy ABI for dynamic modules: -// https://github.com/envoyproxy/envoy/blob/78fc79f72c883549cd6b29db11e02e6fb74c63d0/source/extensions/dynamic_modules/abi.h +// https://github.com/envoyproxy/envoy/blob/dc2d3098ae5641555f15c71d5bb5ce0060a8015c/source/extensions/dynamic_modules/abi.h // // Why not using the header file directly? That is because Go runtime complains // about passing pointers to C code on the boundary. In the following code, we replace @@ -161,8 +161,8 @@ import ( "unsafe" ) -// https://github.com/envoyproxy/envoy/blob/78fc79f72c883549cd6b29db11e02e6fb74c63d0/source/extensions/dynamic_modules/abi_version.h -var version = append([]byte("f2712929b605772d35c34d9ac8ccd7e168197a50951e9c96b64e03256bf80265"), 0) +// https://github.com/envoyproxy/envoy/blob/dc2d3098ae5641555f15c71d5bb5ce0060a8015c/source/extensions/dynamic_modules/abi_version.h +var version = append([]byte("ca2be3b80954d2a0e22b41d033b18eff9390c30261c8ec9ffe6e6bf971f41c27"), 0) //export envoy_dynamic_module_on_program_init func envoy_dynamic_module_on_program_init() uintptr { diff --git a/rust/Cargo.lock b/rust/Cargo.lock index aa095d0..c0460b5 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -84,7 +84,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "envoy-proxy-dynamic-modules-rust-sdk" version = "0.1.0" -source = "git+https://github.com/envoyproxy/envoy?rev=78fc79f72c883549cd6b29db11e02e6fb74c63d0#78fc79f72c883549cd6b29db11e02e6fb74c63d0" +source = "git+https://github.com/envoyproxy/envoy?rev=dc2d3098ae5641555f15c71d5bb5ce0060a8015c#dc2d3098ae5641555f15c71d5bb5ce0060a8015c" dependencies = [ "bindgen", "mockall", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index bef4e57..590df81 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/envoyproxy/dynamic-modules-example" [dependencies] # The SDK version must match the Envoy version due to the strict compatibility requirements. -envoy-proxy-dynamic-modules-rust-sdk = { git = "https://github.com/envoyproxy/envoy", rev = "78fc79f72c883549cd6b29db11e02e6fb74c63d0" } +envoy-proxy-dynamic-modules-rust-sdk = { git = "https://github.com/envoyproxy/envoy", rev = "dc2d3098ae5641555f15c71d5bb5ce0060a8015c" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" rand = "0.9.0"