forked from trnila/democar_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (40 loc) · 1.93 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ros:foxy
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install ros-foxy-desktop
RUN apt-get update && apt-get install -y \
ros-foxy-rmw-cyclonedds-cpp \
ros-foxy-vision-msgs \
vim \
strace \
iproute2 \
htop \
wget \
curl \
gdb \
tmux
ENV DISPLAY :0
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
RUN mkdir -p /opt/ws/
RUN apt-get install -y libyaml-cpp-dev libpcap-dev
RUN git clone https://github.com/ros/diagnostics.git /opt/ws/src/diagnostics -b foxy && cd /opt/ws && . /opt/ros/foxy/setup.sh && colcon build
RUN git clone https://github.com/ros-drivers/velodyne.git /opt/ws/src/velodyne -b ros2 && cd /opt/ws && . /opt/ros/foxy/setup.sh && colcon build
#RUN git clone https://github.com/ros-perception/image_transport_plugins.git /opt/ws/src/image_transport_plugins -b ros2 && cd /opt/ws && . /opt/ros/foxy/setup.sh && colcon build
#RUN git clone https://github.com/ros-perception/image_common.git /opt/ws/src/image_common -b ros2 && cd /opt/ws && . /opt/ros/foxy/setup.sh && colcon build
#RUN git clone https://github.com/ros-perception/image_pipeline.git /opt/ws/src/image_pipeline -b ros2 && cd /opt/ws && . /opt/ros/foxy/setup.sh && colcon build
RUN mkdir -p /tools
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly -y
ENV PATH=/root/.cargo/bin:$PATH
RUN sudo apt install -y \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstrtspserver-1.0-dev \
clang
RUN git clone https://github.com/trnila/zenoh-plugin-dds.git /tools/zenoh-plugin-dds -b gstreamer && cd /tools/zenoh-plugin-dds/ && cargo build --release && cp ./target/release/zenoh-bridge-dds /usr/local/bin
RUN sudo apt install -y python3-opencv python3-pip
RUN pip3 install panda3d_viewer
ADD entry.sh /usr/local/bin/
ENTRYPOINT /usr/local/bin/entry.sh