Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
.GIT_REV
oci.tar
.DS_Store
14 changes: 8 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ metrics-exporter-prometheus = "0.18"
[dev-dependencies]
wiremock = "0.6"
tower = { version = "0.5", features = ["util"] }
criterion = { version = "0.5", features = ["html_reports"] }
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }

[[bench]]
name = "hot_path"
harness = false

[[bench]]
name = "e2e"
harness = false
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
# Cache dependencies: copy manifests first, then do a dummy build
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs && echo "" > src/lib.rs \
&& mkdir -p benches && echo "fn main() {}" > benches/hot_path.rs \
&& mkdir -p benches && echo "fn main() {}" > benches/hot_path.rs && echo "fn main() {}" > benches/e2e.rs \
&& cargo build --release --locked 2>/dev/null || true \
&& rm -rf src benches \
&& rm -f target/release/deps/*vllm_proxy_rs* \
Expand All @@ -37,8 +37,9 @@ RUN pip install --no-cache-dir nv-attestation-sdk nv-ppcie-verifier

WORKDIR /app

# Copy compiled binary from builder
# Copy compiled binary and GPU evidence worker from builder
COPY --from=builder /build/target/release/vllm-proxy-rs /app/vllm-proxy-rs
COPY gpu_evidence_worker.py /app/gpu_evidence_worker.py

# Bake in git revision for version tracking
COPY --chmod=664 .GIT_REV /etc/
Expand Down
Loading
Loading