Owner decision 2026-11-23: the vendored Strata tree engine/strata is removed for good. This first step moves what is still read at build, test or ship time into one small directory, byte for byte: - third_party/strata/LICENSE (MIT; `leleka engine license` embeds it, the packagers ship it) - third_party/strata/ggml/LICENSE, project-maya/LICENSE, project-maya/NOTICE.md (licence texts the release packager ships) - third_party/strata/serve/chat_template.jinja (one copy, embedded by control-plane server_api.rs and gateway-text prompt.rs) - third_party/strata/serve/chat_golden.json (gateway-text prompt tests) - third_party/strata/tests/data/native_experts/*.txt (control-plane native_pack tests) - control-plane/tests/mcp_hub/mcp_fake_server.py next to its test harness - third_party/strata/UPSTREAM.md replaces engine/upstream.md: pin 41cf05a0, URL, the 25 locally patched files, where the removed tree is in history include_str! paths, deploy/build.rs (the `leleka version` Strata pin now reads third_party/strata/UPSTREAM.md), Dockerfile.static-cli, .dockerignore, .gitattributes, the release packagers (package-5090.sh, package-release.py: the subtree facts of the removed tree are dropped from PROVENANCE) and the evidence capture scripts follow the move. The tree itself is deleted in a later commit.
26 lines
1.2 KiB
Docker
26 lines
1.2 KiB
Docker
FROM rust:1.99-bookworm AS build
|
|
|
|
ARG RUST_TARGET=x86_64-unknown-linux-musl
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends musl-tools cmake \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /src
|
|
ENV CARGO_TARGET_DIR=/src/control-plane/target
|
|
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
|
|
# After the toolchain file is in place: the floating rust:1.99 tag can carry a newer patch than the pinned 1.99.0, and the target must be
|
|
# installed for the toolchain rustup actually selects (adding it before made the build fail with "can't find crate for `core`").
|
|
RUN rustup target add "${RUST_TARGET}"
|
|
COPY crates/ ./crates/
|
|
COPY manifests/ ./manifests/
|
|
COPY desktop-core/ ./desktop-core/
|
|
COPY control-plane/ ./control-plane/
|
|
COPY third_party/strata/LICENSE ./third_party/strata/LICENSE
|
|
COPY third_party/strata/serve/chat_template.jinja ./third_party/strata/serve/chat_template.jinja
|
|
RUN cargo build --manifest-path control-plane/Cargo.toml --locked --release \
|
|
--target "${RUST_TARGET}" --bin leleka-api
|
|
|
|
FROM scratch
|
|
ARG RUST_TARGET=x86_64-unknown-linux-musl
|
|
COPY --from=build /src/control-plane/target/${RUST_TARGET}/release/leleka-api /leleka-api
|
|
ENTRYPOINT ["/leleka-api"]
|