Skip to content

Docker build fails when including packages with git #30

@alexeistepa

Description

@alexeistepa

When adding a package with git to the virtual environment e.g. adding the line

    "matrix-inject @ git+https://github.com/everycure-org/matrix@main#subdirectory=libs/matrix-inject",

to pyproject.toml, the command kedro argo submit fails with the message:

...
#10 [deps 4/6] COPY pyproject.toml .
#10 DONE 0.3s

#11 [deps 5/6] COPY uv.lock .
#11 DONE 0.0s

#12 [deps 6/6] RUN uv sync --frozen --no-install-project
#12 0.704 Downloading cpython-3.13.2-linux-x86_64-gnu (20.4MiB)
#12 1.965  Downloaded cpython-3.13.2-linux-x86_64-gnu
#12 2.263 Using CPython 3.13.2
#12 2.264 Creating virtual environment at: .venv
#12 2.400    Updating https://github.com/everycure-org/matrix (main)
#12 2.413   × Failed to download and build `matrix-inject @
#12 2.413   │ git+https://github.com/everycure-org/matrix@e1df029ff60f9e52461b0450000b057c546be763#subdirectory=libs/matrix-inject`
#12 2.413   ├─▶ Git operation failed
#12 2.413   ╰─▶ Git executable not found. Ensure that Git is installed and available.
#12 2.413   help: `matrix-inject` was included because `gnn` depends on `matrix-inject`
#12 ERROR: process "/bin/sh -c uv sync --frozen --no-install-project" did not complete successfully: exit code: 1
------
 > [deps 6/6] RUN uv sync --frozen --no-install-project:
0.704 Downloading cpython-3.13.2-linux-x86_64-gnu (20.4MiB)
1.965  Downloaded cpython-3.13.2-linux-x86_64-gnu
3.13.2
2.264 Creating virtual environment at: .venv
2.400    Updating https://github.com/everycure-org/matrix (main)
2.413   × Failed to download and build `matrix-inject @
2.413   │ git+https://github.com/everycure-org/matrix@e1df029ff60f9e52461b0450000b057c546be763#subdirectory=libs/matrix-inject`
2.413   ├─▶ Git operation failed
2.413   ╰─▶ Git executable not found. Ensure that Git is installed and available.
2.413   help: `matrix-inject` was included because `gnn` depends on `matrix-inject`
------
Dockerfile:18
--------------------
  16 |     COPY pyproject.toml .
  17 |     COPY uv.lock .
  18 | >>> RUN uv sync --frozen --no-install-project
  19 |     
  20 |     # --- Runtime stage ---
--------------------
ERROR: failed to solve: process "/bin/sh -c uv sync --frozen --no-install-project" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/l10bst2e2247wsr9m17q558ez
Error: Docker build failed with exit code 1
[02/27/26 14:34:53] INFO     Kedro is sending anonymous usage data with the sole purpose of improving the product. No personal data or IP addresses are stored on our side. To opt out, set the `KEDRO_DISABLE_TELEMETRY` or            plugin.py:242
                             `DO_NOT_TRACK` environment variables, or create a `.telemetry` file in the current working directory with the contents `consent: false`. To hide this message, explicitly grant or deny consent. Read more              
                             at https://docs.kedro.org/en/stable/about/telemetry/        

To reproduce, run

uv run kedro argo submit -p gnn      

from this branch of the GNN pipeline.

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