Files
landing_page/automation/snippets/docker/Dockerfile
T
Abdon PijpelinkandClaude Sonnet 4.6 ffe50340fa Edge 0.7 documentation updates (#2391)
* docs(edge): add "Modify the Vector Schema" step to quickstart

Documents the new Edge 0.7 API for adding and removing named vector
fields on an existing shard without recreating it, with Python and
Rust snippets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs(edge): mention quantization support in quickstart

Adds a note after the EdgeConfig snippet that Edge supports all four
quantization methods (Scalar, Product, Binary, TurboQuant), with a
link to the quantization guide.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs(edge): add On-Device BM25 page for Edge 0.7

New guide covering the built-in BM25 sparse embedder: configuring a
sparse vector shard, creating a Bm25/EdgeBm25 embedder, embedding and
upserting documents, and querying. Includes Python and Rust snippets.
Also adds the page to the Edge index navigation table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs(edge): add WAL segment size configuration to quickstart

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Upgrade code snippets to Edge 0.7.2

* Review feedback

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 15:51:20 +02:00

54 lines
1.6 KiB
Docker

FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
software-properties-common \
# for rust client
gcc \
libc6-dev \
# for go client
golang \
# for java client
openjdk-21-jdk-headless \
# for python client
python3 \
&& rm -rf /var/lib/apt/lists/*
# for typescript client - Node 22 (Node 18 EOL April 2025, pnpm requires 20+)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
rm -rf /var/lib/apt/lists/*
# for csharp client
RUN add-apt-repository ppa:dotnet/backports && \
apt-get update && \
apt-get install -y dotnet-sdk-8.0 --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# for rust client
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
CARGO_HOME=/opt/rust RUSTUP_HOME=/opt/rust \
sh -s -- -y --default-toolchain nightly
# for typescript client
RUN npm install --global --prefix /usr/local pnpm
# Without this, typescript snippets tries to connect to ::1 instead of 127.1
RUN echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf
# for python client
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV RUSTUP_HOME=/opt/rust \
PATH="/opt/rust/bin:${PATH}"
# /workspace is the repo root
WORKDIR /workspace/automation/snippets
# Build tools put their caches in $HOME
ENV HOME=/workspace/automation/snippets/cache \
# gradle ignores $HOME
GRADLE_USER_HOME=/workspace/automation/snippets/cache/.gradle
ENTRYPOINT ["/bin/bash", "-c", "mkdir -p $HOME && \"$@\"", "--"]