File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 11# Build arguments for version configuration
2- ARG PYTORCH_VERSION=2.10 .0
3- ARG CUDA_VERSION=12.6
2+ ARG PYTORCH_VERSION=2.6 .0
3+ ARG CUDA_VERSION=12.4
44
55FROM pytorch/pytorch:${PYTORCH_VERSION}-cuda${CUDA_VERSION}-cudnn9-runtime
66
@@ -53,9 +53,16 @@ SHELL ["/bin/bash", "-c"]
5353# extend PATH (for CLI)
5454ENV PATH="$PATH:/home/ubuntu/.local/bin"
5555
56- # install roboreg
57- RUN pip install --upgrade pip setuptools wheel \
58- && pip install roboreg/ --no-build-isolation \
56+ # install roboreg (to use cached libraries, break system packages for Ubuntu 24.04)
57+ RUN UBUNTU_VERSION=$(grep -oP '(?<=VERSION_ID=")[^"]+' /etc/os-release) && \
58+ echo "Detected Ubuntu $UBUNTU_VERSION" && \
59+ if [ "$UBUNTU_VERSION" = "24.04" ]; then \
60+ pip install --upgrade pip setuptools wheel --break-system-packages && \
61+ pip install roboreg/ --no-build-isolation --break-system-packages; \
62+ else \
63+ pip install --upgrade pip setuptools wheel && \
64+ pip install roboreg/ --no-build-isolation; \
65+ fi \
5966 && rm -rf /home/ubuntu/.cache/pip
6067
6168# copy sample data
Original file line number Diff line number Diff line change 1515 - pytorch_version : " 2.6.0"
1616 cuda_version : " 12.4"
1717 - pytorch_version : " 2.10.0"
18- cuda_version : " 13.1 "
18+ cuda_version : " 13.0 "
1919 steps :
2020 - name : Free disk space
2121 run : |
You can’t perform that action at this time.
0 commit comments