mirror of
https://github.com/katanemo/plano.git
synced 2026-06-26 15:39:40 +02:00
split wasm filter (#186)
* split wasm filter * fix int and unit tests * rename public_types => common and move common code there * rename * fix int test
This commit is contained in:
parent
b1746b38b4
commit
3bd2ffe9fb
41 changed files with 5755 additions and 351 deletions
|
|
@ -2,19 +2,18 @@
|
|||
FROM rust:1.80.0 as builder
|
||||
RUN rustup -v target add wasm32-wasi
|
||||
WORKDIR /arch
|
||||
COPY arch/src /arch/src
|
||||
COPY arch/Cargo.toml /arch/
|
||||
COPY arch/Cargo.lock /arch/
|
||||
COPY public_types /public_types
|
||||
COPY crates .
|
||||
|
||||
RUN cargo build --release --target wasm32-wasi
|
||||
RUN cd prompt_gateway && cargo build --release --target wasm32-wasi
|
||||
RUN cd llm_gateway && cargo build --release --target wasm32-wasi
|
||||
|
||||
# copy built filter into envoy image
|
||||
FROM envoyproxy/envoy:v1.31-latest as envoy
|
||||
|
||||
#Build config generator, so that we have a single build image for both Rust and Python
|
||||
FROM python:3-slim as arch
|
||||
COPY --from=builder /arch/target/wasm32-wasi/release/intelligent_prompt_gateway.wasm /etc/envoy/proxy-wasm-plugins/intelligent_prompt_gateway.wasm
|
||||
COPY --from=builder /arch/prompt_gateway/target/wasm32-wasi/release/prompt_gateway.wasm /etc/envoy/proxy-wasm-plugins/prompt_gateway.wasm
|
||||
COPY --from=builder /arch/llm_gateway/target/wasm32-wasi/release/llm_gateway.wasm /etc/envoy/proxy-wasm-plugins/llm_gateway.wasm
|
||||
COPY --from=envoy /usr/local/bin/envoy /usr/local/bin/envoy
|
||||
WORKDIR /config
|
||||
COPY arch/requirements.txt .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue