generated from aerostack2/as2_node_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 985 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
FROM osrf/ros:humble-desktop
# Instalación de zenoh bridge
RUN apt-get update && apt-get install -y ros-humble-rmw-cyclonedds-cpp curl
RUN apt-get install llvm-dev libclang-dev -y
WORKDIR /root
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN git clone https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds.git
WORKDIR /root/zenoh-plugin-ros2dds
RUN cargo build --release --features zenoh/transport_serial
ENV PATH="/root/zenoh-plugin-ros2dds/target/release:${PATH}"
RUN echo 'export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp' >> /root/.bashrc
RUN echo 'export ROS_LOCALHOST_ONLY=1' >> /root/.bashrc
# Source de ROS
RUN echo 'source "/opt/ros/$ROS_DISTRO/setup.sh"' >> /root/.bashrc
# Copia del entrypoint
# COPY entrypoint.sh /entrypoint.sh
# RUN chmod +x /entrypoint.sh
# Herramientas necesarias
RUN apt update && \
apt-get -y install net-tools iputils-ping iproute2 bluez
# ENTRYPOINT ["/entrypoint.sh"]