Skip to content

Commit b7fe5e1

Browse files
committed
fix docker for ubuntu 24.04
1 parent 5d414fa commit b7fe5e1

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.docker/Dockerfile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
FROM pytorch/pytorch:${PYTORCH_VERSION}-cuda${CUDA_VERSION}-cudnn9-runtime
66

@@ -53,9 +53,16 @@ SHELL ["/bin/bash", "-c"]
5353
# extend PATH (for CLI)
5454
ENV 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

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)