-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.upper
32 lines (23 loc) · 1 KB
/
Dockerfile.upper
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
30
31
32
FROM andors/image_processing_base:latest
# Copy files
COPY . /root/ros_ws/src/
WORKDIR /root/ros_ws
# Initialize rosdep and install dependencies
RUN rosdep update && \
rosdep install --from-paths src --ignore-src -r -y
# Build the ROS2 workspace
RUN /bin/bash -c "source /opt/ros/humble/setup.bash && colcon build --event-handlers console_cohesion+"
# Source the ROS2 setup script
RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc && \
echo "source /root/ros_ws/install/setup.bash" >> ~/.bashrc && \
echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> ~/.bashrc
# entrypoint currently broken
# Copy the entrypoint script into the image
# COPY entrypoint.sh /root/entrypoint.sh
# Make the entrypoint script executable
# RUN chmod +x /root/entrypoint.sh
# Set the entrypoint
# ENTRYPOINT ["/root/entrypoint.sh"]
# Default command
CMD ["/bin/bash", "-c", \
"source /opt/ros/humble/setup.bash && source /root/ros_ws/install/setup.bash && ros2 launch image_processing object_detection_lite.launch.py"]