mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
Add workflow logic for weather forecast demo (#24)
This commit is contained in:
parent
7ef68eccfb
commit
33f9dd22e6
32 changed files with 1902 additions and 459 deletions
16
envoyfilter/Dockerfile
Normal file
16
envoyfilter/Dockerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# build filter using rust toolchain
|
||||
FROM rust:1.80.0 as builder
|
||||
WORKDIR /envoyfilter
|
||||
COPY envoyfilter/src /envoyfilter/src
|
||||
COPY envoyfilter/Cargo.toml /envoyfilter/
|
||||
COPY envoyfilter/Cargo.lock /envoyfilter/
|
||||
COPY open-message-format /open-message-format
|
||||
|
||||
RUN rustup -v target add wasm32-wasi
|
||||
RUN cargo build --release --target wasm32-wasi
|
||||
|
||||
# copy built filter into envoy image
|
||||
FROM envoyproxy/envoy:v1.30-latest
|
||||
COPY --from=builder /envoyfilter/target/wasm32-wasi/release/intelligent_prompt_gateway.wasm /etc/envoy/proxy-wasm-plugins/intelligent_prompt_gateway.wasm
|
||||
COPY envoyfilter/envoy.yaml /etc/envoy.yaml
|
||||
CMD ["envoy", "-c", "/etc/envoy/envoy.yaml"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue