mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-01 17:08:30 +02:00
* Initial Rust snippets * Update content for Rust * Upgrade Rust to 1.94.0; test Edge code snippets against dev * Temporarily test against Edge shim crate * Move to EdgeShardConfig and EdgeVectorParams * Add docs for payload indexing, filtering, facet(), and optimize() * De-emphasize on-device use case * Update link to Rust examples on Github * Flattened API * Switch to new/create and load to initialize shards * Fixups for released packages * Mention recover_partial_snapshot on method list * Link to Github dev branch for examples --------- Co-authored-by: xzfc <xzfcpw@gmail.com>
52 lines
1.4 KiB
Docker
52 lines
1.4 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 \
|
|
# for typescript client
|
|
nodejs \
|
|
npm \
|
|
&& 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 1.94.0
|
|
|
|
# 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 && \"$@\"", "--"]
|