-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.websocket
More file actions
51 lines (41 loc) · 1.76 KB
/
Dockerfile.websocket
File metadata and controls
51 lines (41 loc) · 1.76 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Use the official ROS2 Docker image as the base image
FROM ros:humble
WORKDIR /ws_rosbridge
SHELL ["/bin/bash", "-c"]
# Install build dependencies
RUN apt-get update -y && apt-get install -y \
libsqlite3-dev \
build-essential\
git \
cmake \
libyaml-cpp-dev \
software-properties-common \
pkg-config \
wget \
curl \
libpdal-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/
#RUN git clone --recursive --branch ros2 https://github.com/RobotWebTools/rosbridge_suite.git /ws_rosbridge/src/rosbridge_suite
RUN git clone --recursive --branch=ros2 https://github.com/FlorianLebecque/rosbridge_suite.git /ws_rosbridge/src/rosbridge_suite
RUN git clone --recursive https://github.com/FlorianLebecque/ROS2CustomMSGCompil.git /ws_rosbridge/src/ROS2CustomMSGCompil
RUN git clone --recursive --branch=humble https://github.com/ros-planning/navigation_msgs.git /ws_rosbridge/src/navigation_msgs
RUN git clone --recursive --branch=ros2 https://github.com/ros-perception/pcl_msgs.git /ws_rosbridge/src/pcl_msgs
RUN cd /ws_rosbridge &&\
source /opt/ros/${ROS_DISTRO}/setup.bash &&\
apt-get update -y &&\
apt-get install -y python3-rosdep \
&& source /opt/ros/${ROS_DISTRO}/setup.bash \
&& rm /etc/ros/rosdep/sources.list.d/20-default.list \
&& rosdep init \
&& rosdep update \
&& rosdep install -i --from-path src --rosdistro ${ROS_DISTRO} -y \
&& colcon build
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python3-pip \
ros-$ROS_DISTRO-rmw-cyclonedds-cpp
ENV RMW_IMPLEMENTATION rmw_cyclonedds_cpp
EXPOSE 9090
COPY ros_entrypoint.sh /sbin/ros_entrypoint.sh
RUN chmod 755 /sbin/ros_entrypoint.sh
ENTRYPOINT ["/sbin/ros_entrypoint.sh"]
CMD ["bash"]