-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tx2
39 lines (31 loc) · 1.74 KB
/
Dockerfile.tx2
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
FROM dustynv/ros:iron-pytorch-l4t-r32.7.1@sha256:b426845ad502e61208e5ff09ca863df107e486441ffcf725d71d91320695b255
RUN apt update && apt install -y --no-install-recommends git python3-pip
RUN pip3 install tqdm
RUN pip3 install pandas
RUN pip3 install scipy
RUN pip3 install pillow
RUN pip3 install ipython
RUN pip3 install seaborn
RUN pip3 install matplotlib
# deep sort dependencies
# RUN pip3 install filterpy
# RUN pip3 install scikit-image
# RUN pip3 install lap
WORKDIR /additional_packages/src
RUN git clone -b iron https://github.com/ros-perception/vision_opencv.git
RUN mv vision_opencv/cv_bridge/ .
RUN rm -r vision_opencv/
RUN git clone -b ros2 https://github.com/ros-drivers/zbar_ros.git
RUN git clone -b iron https://github.com/ros-perception/image_common.git
RUN git clone -b iron https://github.com/ros-perception/image_transport_plugins.git
RUN git clone -b 0.7.0 https://github.com/ros-drivers/usb_cam.git
RUN /bin/bash -c "source /opt/ros/iron/install/setup.bash && rosdep update"
RUN /bin/bash -c "source /opt/ros/iron/install/setup.bash && rosdep install --from-paths zbar_ros --ignore-src -y"
RUN /bin/bash -c "source /opt/ros/iron/install/setup.bash && rosdep install --from-paths image_common --ignore-src -y"
RUN /bin/bash -c "source /opt/ros/iron/install/setup.bash && rosdep install --from-paths image_transport_plugins --ignore-src -y"
RUN /bin/bash -c "source /opt/ros/iron/install/setup.bash && cd /additional_packages && colcon build"
RUN /bin/bash -c "source /additional_packages/install/setup.bash && rosdep install --from-paths usb_cam --ignore-src -y"
WORKDIR /additional_packages
RUN /bin/bash -c "source /opt/ros/iron/install/setup.bash && colcon build"
RUN echo 'source /additional_packages/install/setup.bash' >> /root/.bashrc
CMD ["bash"]