Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devops/cuda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN apt-get update \
git \
python3 \
python3-pip \
&& pip install --upgrade pip setuptools wheel \
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line continuation backslash is missing at the end of line 63, which will cause the Docker build to fail. Add a backslash () at the end of the line to properly continue the RUN command.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be enough to upgrade only the pip package?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slaren, @danchev, @ngxson

Since the Github Actions for publishing the dockerimage specify the "ubuntu-22.04" base image, I think it's a good idea to remove the "--break-system-packages" option from ".devops/cuda.Dockerfile."

Alternatively, instead of removing the "--break-system-packages" option, I think the base image should be based on "ubuntu-24.04."

More details below.

The "--break-system-packages" option was added on "Aug 15, 2025, 12:45 AM GMT+9" via the following issue and pull request.

At this time, "Ubuntu The "--break-system-packages" option was added because container builds failed when using a base image with "ubuntu-24.04" specified, but the .github/workflows/docker.yml settings specifies a fixed value of "ubuntu-22.04", and the pip installed by python3-pip on ubuntu-22.04 is v22.x.

The "--break-system-packages" option is available in pip v23.1 and later, and installing pip v23.1 or later on "ubuntu-22.04" would likely be a bit of a hassle, and the impact would be significant if the base image were based on "ubuntu-24.04", so for the time being it is probably best to remove the "--break-system-packages" option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snmagn @slaren @ngxson

I apologize for the confusion. To be clear, the Docker build is currently failing not because of the addition of the --break-system-packages flag, but because the same PR/commit that introduced the flag also removed the line:
&& pip install --upgrade pip setuptools wheel \ from .devops/cuda.Dockerfile.

This PR contains two commits:

  1. A revert of the change that broke the build.
  2. A separate commit that correctly adds the --break-system-packages flag, which was the intended change in the original PR fix compile bug when the BASE_CUDA_DEV_CONTAINER is based on Ubuntu 2… #15005.

Effectively, this PR does not introduce anything new to cuda.Dockerfile; it simply restores a line that was mistakenly removed while still keeping the intended flag addition.

&& pip install --break-system-packages -r requirements.txt \
&& apt autoremove -y \
&& apt clean -y \
Expand Down