-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (27 loc) · 827 Bytes
/
Dockerfile
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
33
34
FROM ros:humble
# Copy over the source code
WORKDIR /ws
COPY . /ws/src/docking_robot
# Pull VCS repos
RUN vcs import src/docking_robot < src/docking_robot/docking_robot.repos
ENV HUSARION_ROS_BUILD_TYPE=simulation
# Install rosdeps
RUN apt-get update && \
rosdep update && \
rosdep install --from-paths src --ignore-src -y
# Build the workspace
RUN . /opt/ros/humble/setup.sh && \
MAKEFLAGS="-j 8" \
colcon build --symlink-install --parallel-workers 2
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
# Create the entrypoint
RUN echo '#!/bin/sh\n\
ulimit -Sn 524288\n\
ulimit -Hn 524288\n\
. /ws/install/setup.sh\n\
exec "$@"' > /entrypoint.sh && chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["ros2", "launch", "docking_bringup", "docking.launch.py"]