-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (59 loc) · 2.38 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ros:noetic
# Remove user interactive
ENV DEBIAN_FRONTEND noninteractive
# Update repo packages
RUN apt-get update --fix-missing && \
apt-get install -y apt-utils && \
apt-get upgrade -y
# Install python
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN apt-get install -y python3-pip
RUN pip install --upgrade pip && \
pip install --upgrade setuptools
# Install OS packages (for modules/Vision)
RUN apt-get -y install libgirepository1.0-dev \
libcairo2-dev \
v4l-utils
# Install OS packages (for modules/Speech)
RUN apt-get -y install libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-doc \
gstreamer1.0-tools \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3 \
gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio
RUN apt-get -y install libsndfile1 \
libportaudio2
WORKDIR /workspace
# Install require dependencies
ADD requirements.txt requirements-tm.txt
ADD modules/DM_Generator/requirements.txt requirements-dm.txt
ADD modules/DM_Intent/requirements.txt requirements-dm_intent.txt
ADD modules/KM/requirements.txt requirements-km.txt
ADD modules/Vision/requirements.txt requirements-vision.txt
ADD modules/Speech/requirements.txt requirements-speech.txt
RUN pip install -r requirements-tm.txt
RUN pip install -r requirements-dm.txt
RUN pip install -r requirements-dm_intent.txt
RUN pip install -r requirements-km.txt
RUN pip install -r requirements-vision.txt
RUN pip install -r requirements-speech.txt
# Install ROS packages (for ROS WebSocket)
RUN apt-get install -y ros-noetic-rosbridge-suite
# Install ROS packages (for modules/Vision)
RUN apt-get install -y ros-$(rosversion -d)-cv-bridge
# Setup ROS environment
RUN rosdep update
ADD docker-entrypoint.sh .
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT ["/workspace/docker-entrypoint.sh"]
CMD ["roslaunch", "tm", "tm_launcher.launch"]