2026-02-19 05:13:12 +00:00
|
|
|
# Envoy version — keep in sync with cli/planoai/consts.py ENVOY_VERSION
|
|
|
|
|
ARG ENVOY_VERSION=v1.37.0
|
|
|
|
|
|
2026-02-09 09:25:57 -08:00
|
|
|
# --- Dependency cache ---
|
|
|
|
|
FROM rust:1.93.0 AS deps
|
2024-11-12 10:35:14 -08:00
|
|
|
RUN rustup -v target add wasm32-wasip1
|
2024-09-27 16:41:39 -07:00
|
|
|
WORKDIR /arch
|
2026-02-09 09:25:57 -08:00
|
|
|
|
|
|
|
|
COPY crates/Cargo.toml crates/Cargo.lock ./
|
|
|
|
|
COPY crates/common/Cargo.toml common/Cargo.toml
|
|
|
|
|
COPY crates/hermesllm/Cargo.toml hermesllm/Cargo.toml
|
|
|
|
|
COPY crates/prompt_gateway/Cargo.toml prompt_gateway/Cargo.toml
|
|
|
|
|
COPY crates/llm_gateway/Cargo.toml llm_gateway/Cargo.toml
|
|
|
|
|
COPY crates/brightstaff/Cargo.toml brightstaff/Cargo.toml
|
|
|
|
|
|
|
|
|
|
# Dummy sources to pre-compile dependencies
|
|
|
|
|
RUN mkdir -p common/src && echo "" > common/src/lib.rs && \
|
|
|
|
|
mkdir -p hermesllm/src && echo "" > hermesllm/src/lib.rs && \
|
|
|
|
|
mkdir -p hermesllm/src/bin && echo "fn main() {}" > hermesllm/src/bin/fetch_models.rs && \
|
|
|
|
|
mkdir -p prompt_gateway/src && echo "#[no_mangle] pub fn _start() {}" > prompt_gateway/src/lib.rs && \
|
|
|
|
|
mkdir -p llm_gateway/src && echo "#[no_mangle] pub fn _start() {}" > llm_gateway/src/lib.rs && \
|
|
|
|
|
mkdir -p brightstaff/src && echo "fn main() {}" > brightstaff/src/main.rs && echo "" > brightstaff/src/lib.rs
|
|
|
|
|
|
|
|
|
|
RUN cargo build --release --target wasm32-wasip1 -p prompt_gateway -p llm_gateway || true
|
|
|
|
|
RUN cargo build --release -p brightstaff || true
|
|
|
|
|
|
|
|
|
|
# --- WASM plugins ---
|
|
|
|
|
FROM deps AS wasm-builder
|
|
|
|
|
RUN rm -rf common/src hermesllm/src prompt_gateway/src llm_gateway/src
|
|
|
|
|
COPY crates/common/src common/src
|
|
|
|
|
COPY crates/hermesllm/src hermesllm/src
|
|
|
|
|
COPY crates/prompt_gateway/src prompt_gateway/src
|
|
|
|
|
COPY crates/llm_gateway/src llm_gateway/src
|
|
|
|
|
RUN find common hermesllm prompt_gateway llm_gateway -name "*.rs" -exec touch {} +
|
2025-05-19 09:59:22 -07:00
|
|
|
RUN cargo build --release --target wasm32-wasip1 -p prompt_gateway -p llm_gateway
|
2026-02-09 09:25:57 -08:00
|
|
|
|
|
|
|
|
# --- Brightstaff binary ---
|
|
|
|
|
FROM deps AS brightstaff-builder
|
|
|
|
|
RUN rm -rf common/src hermesllm/src brightstaff/src
|
|
|
|
|
COPY crates/common/src common/src
|
|
|
|
|
COPY crates/hermesllm/src hermesllm/src
|
|
|
|
|
COPY crates/brightstaff/src brightstaff/src
|
|
|
|
|
RUN find common hermesllm brightstaff -name "*.rs" -exec touch {} +
|
2025-05-19 09:59:22 -07:00
|
|
|
RUN cargo build --release -p brightstaff
|
2024-07-30 16:23:23 -07:00
|
|
|
|
2026-02-19 05:13:12 +00:00
|
|
|
FROM docker.io/envoyproxy/envoy:${ENVOY_VERSION} AS envoy
|
2024-10-01 10:02:23 -07:00
|
|
|
|
2026-02-15 10:22:33 -08:00
|
|
|
FROM python:3.14-slim AS arch
|
2025-08-12 13:20:04 -07:00
|
|
|
|
|
|
|
|
RUN set -eux; \
|
|
|
|
|
apt-get update; \
|
2026-02-13 19:53:49 -08:00
|
|
|
apt-get install -y --no-install-recommends gettext-base curl; \
|
2025-08-12 13:20:04 -07:00
|
|
|
apt-get clean; rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2026-02-13 19:53:49 -08:00
|
|
|
RUN pip install --no-cache-dir supervisor
|
|
|
|
|
|
2026-02-09 09:25:57 -08:00
|
|
|
# Remove PAM packages (CVE-2025-6020)
|
2025-08-12 13:20:04 -07:00
|
|
|
RUN set -eux; \
|
|
|
|
|
dpkg -r --force-depends libpam-modules libpam-modules-bin libpam-runtime libpam0g || true; \
|
|
|
|
|
dpkg -P --force-all libpam-modules libpam-modules-bin libpam-runtime libpam0g || true; \
|
|
|
|
|
rm -rf /etc/pam.d /lib/*/security /usr/lib/security || true
|
2024-10-28 20:05:06 -04:00
|
|
|
|
2024-10-01 10:02:23 -07:00
|
|
|
COPY --from=envoy /usr/local/bin/envoy /usr/local/bin/envoy
|
2025-05-19 09:59:22 -07:00
|
|
|
|
2024-11-15 10:44:01 -08:00
|
|
|
WORKDIR /app
|
2025-12-26 11:21:42 -08:00
|
|
|
|
|
|
|
|
RUN pip install --no-cache-dir uv
|
|
|
|
|
|
|
|
|
|
COPY cli/pyproject.toml ./
|
|
|
|
|
COPY cli/uv.lock ./
|
|
|
|
|
COPY cli/README.md ./
|
2026-03-03 14:53:53 -08:00
|
|
|
COPY config/plano_config_schema.yaml /config/plano_config_schema.yaml
|
|
|
|
|
COPY config/envoy.template.yaml /config/envoy.template.yaml
|
2025-12-26 11:21:42 -08:00
|
|
|
|
|
|
|
|
RUN uv run pip install --no-cache-dir .
|
|
|
|
|
|
2026-02-09 09:25:57 -08:00
|
|
|
COPY cli/planoai planoai/
|
2025-12-25 14:55:29 -08:00
|
|
|
COPY config/envoy.template.yaml .
|
Rename all arch references to plano (#745)
* Rename all arch references to plano across the codebase
Complete rebrand from "Arch"/"archgw" to "Plano" including:
- Config files: arch_config_schema.yaml, workflow, demo configs
- Environment variables: ARCH_CONFIG_* → PLANO_CONFIG_*
- Python CLI: variables, functions, file paths, docker mounts
- Rust crates: config paths, log messages, metadata keys
- Docker/build: Dockerfile, supervisord, .dockerignore, .gitignore
- Docker Compose: volume mounts and env vars across all demos/tests
- GitHub workflows: job/step names
- Shell scripts: log messages
- Demos: Python code, READMEs, VS Code configs, Grafana dashboard
- Docs: RST includes, code comments, config references
- Package metadata: package.json, pyproject.toml, uv.lock
External URLs (docs.archgw.com, github.com/katanemo/archgw) left as-is.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update remaining arch references in docs
- Rename RST cross-reference labels: arch_access_logging, arch_overview_tracing, arch_overview_threading → plano_*
- Update label references in request_lifecycle.rst
- Rename arch_config_state_storage_example.yaml → plano_config_state_storage_example.yaml
- Update config YAML comments: "Arch creates/uses" → "Plano creates/uses"
- Update "the Arch gateway" → "the Plano gateway" in configuration_reference.rst
- Update arch_config_schema.yaml reference in provider_models.py
- Rename arch_agent_router → plano_agent_router in config example
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix remaining arch references found in second pass
- config/docker-compose.dev.yaml: ARCH_CONFIG_FILE → PLANO_CONFIG_FILE,
arch_config.yaml → plano_config.yaml, archgw_logs → plano_logs
- config/test_passthrough.yaml: container mount path
- tests/e2e/docker-compose.yaml: source file path (was still arch_config.yaml)
- cli/planoai/core.py: comment and log message
- crates/brightstaff/src/tracing/constants.rs: doc comment
- tests/{e2e,archgw}/common.py: get_arch_messages → get_plano_messages,
arch_state/arch_messages variables renamed
- tests/{e2e,archgw}/test_prompt_gateway.py: updated imports and usages
- demos/shared/test_runner/{common,test_demos}.py: same renames
- tests/e2e/test_model_alias_routing.py: docstring
- .dockerignore: archgw_modelserver → plano_modelserver
- demos/use_cases/claude_code_router/pretty_model_resolution.sh: container name
Note: x-arch-* HTTP header values and Rust constant names intentionally
preserved for backwards compatibility with existing deployments.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 15:16:56 -08:00
|
|
|
COPY config/plano_config_schema.yaml .
|
2026-02-13 19:53:49 -08:00
|
|
|
RUN mkdir -p /etc/supervisor/conf.d
|
2025-12-25 14:55:29 -08:00
|
|
|
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
2025-05-19 09:59:22 -07:00
|
|
|
|
2026-02-09 09:25:57 -08:00
|
|
|
COPY --from=wasm-builder /arch/target/wasm32-wasip1/release/prompt_gateway.wasm /etc/envoy/proxy-wasm-plugins/prompt_gateway.wasm
|
|
|
|
|
COPY --from=wasm-builder /arch/target/wasm32-wasip1/release/llm_gateway.wasm /etc/envoy/proxy-wasm-plugins/llm_gateway.wasm
|
|
|
|
|
COPY --from=brightstaff-builder /arch/target/release/brightstaff /app/brightstaff
|
|
|
|
|
|
|
|
|
|
RUN mkdir -p /var/log/supervisor && \
|
|
|
|
|
touch /var/log/envoy.log /var/log/supervisor/supervisord.log \
|
|
|
|
|
/var/log/access_ingress.log /var/log/access_ingress_prompt.log \
|
|
|
|
|
/var/log/access_internal.log /var/log/access_llm.log /var/log/access_agent.log
|
2025-09-30 18:46:13 -07:00
|
|
|
|
2026-02-13 19:53:49 -08:00
|
|
|
ENTRYPOINT ["/usr/local/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|