-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rov
82 lines (73 loc) · 2.16 KB
/
Dockerfile.rov
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM arm64v8/ros:humble-perception
ENV DEBIAN_FRONTEND noninteractive
ENV SHELL /bin/bash
SHELL ["/bin/bash", "-c"]
WORKDIR /tmp
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
software-properties-common \
wget \
libi2c-dev \
vim
# install gstreamer
RUN add-apt-repository universe && apt-get update && \
apt-get install -y --no-install-recommends \
libgstreamer1.0-0 \
libgstreamer1.0-dev \
libgstreamer-plugins-bad1.0-0 \
libgstreamer-plugins-base1.0-0 \
libgstreamer-plugins-base1.0-dev \
libgstreamer1.0 \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgtk-3-dev \
gstreamer1.0-x && \
# install v4l2
apt-get install -y libv4l-dev v4l-utils && \
apt-get install -y libopenjp2-7 \
libopenjp2-7-dev \
libglew-dev \
libtiff5-dev \
libdc1394-dev \
zlib1g-dev \
libjpeg-dev \
libpng-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libpostproc-dev \
libswscale-dev \
libeigen3-dev \
libtbb2 \
libtbb-dev \
libgtk2.0-dev \
pkg-config \
qv4l2 \
libtesseract4 \
unzip \
python3-pip \
libssh-dev \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# install common python packages
RUN python3 -m pip install \
dbus-next \
evdev \
transitions
# Location where source files will be copied in and built
WORKDIR /opt/ros/CSM_MATE_WS
COPY src .
RUN export PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources && \
source /opt/ros/$ROS_DISTRO/setup.sh && \
colcon build --symlink-install --packages-up-to \
rov_launch \
--cmake-args --no-warn-unused-cli -D DEBUG_OUTPUT=False
# Copy over initial run stuff.
# Entrypoint can more or less be understood as "run this no matter what". It sources the ROS install.
# CMD is the "go" button, and can be overriden
# setup entrypoint
# COPY ./setup/ros_entrypoint_common.sh /ros_entrypoint.sh
# RUN chmod +x /ros_entrypoint.sh
# ENTRYPOINT [ "/ros_entrypoint.sh" ]
# CMD ["ros2", "launch", "rov_launch", "rov.launch.py"] # auto start code
CMD ["/bin/bash"]