-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
29 lines (23 loc) · 856 Bytes
/
Containerfile
File metadata and controls
29 lines (23 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ros:humble
# Install dependencies
RUN apt-get update && apt-get install -y \
python3-pip \
ros-humble-turtlesim \
ros-humble-plotjuggler-ros \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages
RUN python3 -m pip install --no-cache-dir \
--index-url https://download.pytorch.org/whl/cpu \
torch
# Install flowcean
RUN python3 -m pip install --no-cache-dir \
flowcean==0.7.0b2
# Set up ROS2 workspace and clone the desired branch
WORKDIR /root/ros2_ws/src
RUN git clone --branch main --single-branch https://github.com/flowcean/flowcean-ros.git
# Build the workspace
WORKDIR /root/ros2_ws
RUN . /opt/ros/humble/setup.sh && colcon build --packages-select flowcean_ros
SHELL ["/bin/bash", "-c"]
ENTRYPOINT ["/bin/bash", "-c", "source /root/ros2_ws/install/setup.bash && exec \"$@\"", "--"]