Skip to content

Examples 07 to 12: the Docker paths still build a venv and use uv pip install #136

Closed

Description

@tae898

The examples 07_stackoverflow_tables_oltp.py to 12_vector_search.py still use pip-style environments inside the Docker containers they launch for their --docker paths: python -m venv /tmp/bench-venv, . /tmp/bench-venv/bin/activate, then uv pip install <packages> and uv pip install "<wheel>" before python -u <example>.py ... (about 60 occurrences in the six files). 11_vector_index_build.py and 12_vector_search.py also have a Dockerfile string with uv pip install --system numpy pymilvus psutil.

The repo is uv-only now (#122, #124, #126): the container steps should use uv's own commands, for example uv run --no-project --with <pkg> ... --with "<wheel>" python -u <example>.py ..., which needs no venv and no uv pip. Each changed container path has to be run once at the smallest size to prove it still works, since the examples CI does not take the --docker paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions