-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (22 loc) · 1.16 KB
/
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
FROM ros:humble
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV TZ=Europe/Moscow
ENV ROS_DISTRO humble
# ................................................................................
# init Colcon workspace ..........................................................
RUN apt update && apt install -y --no-install-recommends \
python3-pip python3-apt curl && \
pip3 install -U colcon-common-extensions colcon-ros-bundle
# ................................................................................
# copy pkgs ......................................................................
COPY ./velocity_converter /ros2ws/src/velocity_converter
# ................................................................................
# build pkgs .....................................................................
RUN /bin/bash -c '. /opt/ros/$ROS_DISTRO/setup.bash; cd /ros2ws/ && colcon build --symlink-install'
# ................................................................................
# setup entrypoint ...............................................................
COPY ./ros_entrypoint.sh /
RUN chmod 755 ros_entrypoint.sh
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]