-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
36 lines (30 loc) · 916 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
35
36
FROM osrf/ros:melodic-desktop-bionic
# install build tools
RUN apt-get update && apt-get install -y \
python-catkin-tools \
&& rm -rf /var/lib/apt/lists/*
# clone ros package repo
ENV ROS_WS /opt/ros_ws
RUN mkdir -p $ROS_WS/src
WORKDIR $ROS_WS
RUN git -C src clone \
https://github.com/plusangel/ros_udp_bridge.git
# install ros package dependencies
RUN apt-get update && \
rosdep update && \
rosdep install -y \
--from-paths \
src/ros_udp_bridge \
--ignore-src && \
rm -rf /var/lib/apt/lists/*
# build ros package source
RUN catkin config \
--extend /opt/ros/$ROS_DISTRO && \
catkin build \
nautilus_udp_bridge
# source ros package from entrypoint
RUN sed --in-place --expression \
'$isource "$ROS_WS/devel/setup.bash"' \
/ros_entrypoint.sh
# run ros package launch file
CMD ["roslaunch", "nautilus_udp_bridge", "bridge_test.launch"]