Skip to content

Commit 9d002e1

Browse files
committed
Migrated to jazzy
Signed-off-by: Gonzalo de Pedro <gonzalodepedro@ekumenlabs.com>
1 parent da2e637 commit 9d002e1

4 files changed

Lines changed: 35 additions & 27 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p><em>A fully containerized, open-source bridge between medical imaging and robotics.</em></p>
55

66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
7-
[![ROS 2](https://img.shields.io/badge/ROS%202-Humble-brightgreen)](https://docs.ros.org/en/humble/)
7+
[![ROS 2](https://img.shields.io/badge/ROS%202-Jazzy-brightgreen)](https://docs.ros.org/en/jazzy/)
88
[![ISO 12052](https://img.shields.io/badge/DICOM-ISO%2012052-orange)](https://www.dicomstandard.org/)
99
</div>
1010

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM ros:humble-ros-base
1+
FROM ros:jazzy-ros-base
22

33
# 1. Install System Dependencies
44
# net-tools and iputils-ping are for debugging network issues
55
RUN apt-get update && apt-get install -y \
66
python3-pip \
7-
ros-humble-cv-bridge \
8-
ros-humble-sensor-msgs-py \
9-
ros-humble-rqt-image-view \
10-
ros-humble-rqt-graph \
11-
ros-humble-rviz2 \
12-
ros-humble-rviz-common \
13-
ros-humble-rviz-default-plugins \
7+
ros-jazzy-cv-bridge \
8+
ros-jazzy-sensor-msgs-py \
9+
ros-jazzy-rqt-image-view \
10+
ros-jazzy-rqt-graph \
11+
ros-jazzy-rviz2 \
12+
ros-jazzy-rviz-common \
13+
ros-jazzy-rviz-default-plugins \
1414
net-tools \
1515
iputils-ping \
1616
x11-apps \
@@ -19,10 +19,14 @@ RUN apt-get update && apt-get install -y \
1919
# 2. Create user matching host UID/GID
2020
ARG USER_ID=1000
2121
ARG GROUP_ID=1000
22-
RUN groupadd --gid ${GROUP_ID} appuser && \
23-
useradd --uid ${USER_ID} --gid ${GROUP_ID} -m -s /bin/bash appuser && \
22+
RUN if ! getent group ${GROUP_ID} > /dev/null 2>&1; then \
23+
groupadd --gid ${GROUP_ID} appuser; \
24+
fi && \
25+
if ! getent passwd ${USER_ID} > /dev/null 2>&1; then \
26+
useradd --uid ${USER_ID} --gid ${GROUP_ID} -m -s /bin/bash appuser; \
27+
fi && \
2428
mkdir -p /ros2_ws && chown ${USER_ID}:${GROUP_ID} /ros2_ws
2529

26-
USER appuser
30+
USER ${USER_ID}:${GROUP_ID}
2731

28-
RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
32+
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc

docker/Dockerfile

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
1-
FROM ros:humble-ros-base
1+
FROM ros:jazzy-ros-base
22

33
# 1. Install System Dependencies
44
# net-tools and iputils-ping are for debugging network issues
55
RUN apt-get update && apt-get install -y \
66
python3-pip \
7-
ros-humble-cv-bridge \
8-
ros-humble-sensor-msgs-py \
9-
ros-humble-rqt-image-view \
10-
ros-humble-rqt-graph \
11-
ros-humble-rviz2 \
12-
ros-humble-rviz-common \
13-
ros-humble-rviz-default-plugins \
7+
ros-jazzy-cv-bridge \
8+
ros-jazzy-sensor-msgs-py \
9+
ros-jazzy-rqt-image-view \
10+
ros-jazzy-rqt-graph \
11+
ros-jazzy-rviz2 \
12+
ros-jazzy-rviz-common \
13+
ros-jazzy-rviz-default-plugins \
1414
net-tools \
1515
iputils-ping \
1616
x11-apps \
1717
&& rm -rf /var/lib/apt/lists/*
1818

1919
# 2. Install Python Dependencies for DICOM
20-
RUN pip install pydicom pynetdicom "numpy<2" opencv-python-headless gdcm pylibjpeg pyjpegls scipy
20+
RUN pip install pydicom pynetdicom "numpy<2" opencv-python-headless gdcm pylibjpeg pyjpegls scipy --break-system-packages
2121

2222
# 3. Create user matching host UID/GID
2323
ARG USER_ID=1000
2424
ARG GROUP_ID=1000
25-
RUN groupadd --gid ${GROUP_ID} appuser && \
26-
useradd --uid ${USER_ID} --gid ${GROUP_ID} -m -s /bin/bash appuser && \
25+
RUN if ! getent group ${GROUP_ID} > /dev/null 2>&1; then \
26+
groupadd --gid ${GROUP_ID} appuser; \
27+
fi && \
28+
if ! getent passwd ${USER_ID} > /dev/null 2>&1; then \
29+
useradd --uid ${USER_ID} --gid ${GROUP_ID} -m -s /bin/bash appuser; \
30+
fi && \
2731
mkdir -p /ros2_ws && chown ${USER_ID}:${GROUP_ID} /ros2_ws
2832

29-
USER appuser
33+
USER ${USER_ID}:${GROUP_ID}
3034

3135
# 4. Setup Workspace
3236
WORKDIR /ros2_ws
3337

34-
RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
38+
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ services:
2020
- ../dicom_to_ros:/ros2_ws/src/dicom_to_ros
2121
- /tmp/.X11-unix:/tmp/.X11-unix:rw
2222

23-
command: /bin/bash -c "rm -rf build install log && source /opt/ros/humble/setup.bash && colcon build --symlink-install && source install/setup.bash && ros2 launch dicom_to_ros dicom_nodes.launch.py"
23+
command: /bin/bash -c "rm -rf build install log && source /opt/ros/jazzy/setup.bash && colcon build --symlink-install && source install/setup.bash && ros2 launch dicom_to_ros dicom_nodes.launch.py"

0 commit comments

Comments
 (0)