Skip to content
Open
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 .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.pytest_cache
.ruff_cache
.venv
target
.worktrees
benchmark/datasets
benchmark/tb_runs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Keep RUST_VERSION in sync with rust-toolchain.toml.
ARG RUST_VERSION=1.96.1
FROM rust:${RUST_VERSION}-bookworm AS builder

WORKDIR /opt/switchyard
COPY Cargo.toml Cargo.lock ./
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
# .cargo/config.toml carries the workspace rustflags (target-cpu, force-frame-pointers).
COPY .cargo ./.cargo
COPY crates ./crates

RUN cargo build --locked --release -p switchyard-server
Expand Down
2 changes: 1 addition & 1 deletion benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ and while the Rust server is still reachable; otherwise the manifest records the
## Docker Image Notes

Baseline runs build `switchyard-baseline:local` from
`benchmark/switchyard-rust-server.Dockerfile`.
the repository-root `Dockerfile`.
The default is to rebuild before each run so the container matches the current checkout.

To reuse an already built image:
Expand Down
2 changes: 1 addition & 1 deletion benchmark/run-baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BOOK_MODE="closed"
PROXY_STRIP_ARTIFACT="/etc/proxy-public/strip.jsonl"
VERIFIER_PROXY_TEMPLATE='${SWITCHYARD_VERIFIER_HTTP_PROXY}'
SWITCHYARD_DOCKER_IMAGE="${SWITCHYARD_DOCKER_IMAGE:-switchyard-baseline:local}"
SWITCHYARD_DOCKERFILE="${SWITCHYARD_DOCKERFILE:-benchmark/switchyard-rust-server.Dockerfile}"
SWITCHYARD_DOCKERFILE="${SWITCHYARD_DOCKERFILE:-Dockerfile}"
SWITCHYARD_DOCKER_SERVICE_NAME="${SWITCHYARD_DOCKER_SERVICE_NAME:-switchyard}"
SWITCHYARD_DOCKER_BUILD="${SWITCHYARD_DOCKER_BUILD:-1}"
SWITCHYARD_DOCKER_NETWORK="${SWITCHYARD_DOCKER_NETWORK:-}"
Expand Down