Skip to content
Open
Show file tree
Hide file tree
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
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ cd docker

docker build -t my_ros2_project .

```

```bash


```

### Without Docker
Expand Down
2 changes: 1 addition & 1 deletion my_ros2_project/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down