diff --git a/Dockerfile b/Dockerfile index 5aceb9c..ea6bf31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,24 @@ -FROM ros:humble-ros-base +FROM osrf/ros:humble-desktop-full # Install dependencies RUN apt-get update && apt-get install -y \ python3-colcon-common-extensions \ + x11-apps \ + xauth \ + libxcb-xinerama0 \ + libxcb-xinput0 \ + libxkbcommon-x11-0 \ + qt5-qmake \ + qtbase5-dev \ + qtbase5-dev-tools \ && rm -rf /var/lib/apt/lists/* # Copy the package COPY . /my_ros2_project WORKDIR /my_ros2_project -# Make entrypoint script executable -#RUN chmod +x /my_ros2_project/docker/entrypoint.sh - # Build the package RUN . /opt/ros/humble/setup.sh && colcon build # Source the environment and run the node -#ENTRYPOINT ["/my_ros2_project/docker/entrypoint.sh"] +# ENTRYPOINT ["/my_ros2_project/docker/entrypoint.sh"] diff --git a/README.md b/README.md index f621405..4546608 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,11 @@ cd docker docker build -t my_ros2_project . +``` + +```bash + + ``` ### Without Docker diff --git a/my_ros2_project/Dockerfile b/my_ros2_project/Dockerfile index 5aceb9c..85e3800 100644 --- a/my_ros2_project/Dockerfile +++ b/my_ros2_project/Dockerfile @@ -1,4 +1,4 @@ -FROM ros:humble-ros-base +FROM osrf/ros:humble-desktop-full # Install dependencies RUN apt-get update && apt-get install -y \