-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
88 lines (77 loc) · 3.01 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM nvidia/cuda:11.1.1-cudnn8-devel-ubuntu18.04
RUN apt update
# Install common build tools
RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \
automake \
build-essential \
curl \
dialog apt-utils \
git \
g++ \
libboost-all-dev \
libssl-dev \
libtool \
libyaml-cpp-dev \
lsb-release \
make \
pkg-config \
python3-pip \
python3-setuptools \
wget \
cmake \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# update pip & install cmake for tensorrt build
RUN python3 -m pip install --upgrade pip && pip3 install cmake==3.18.0
# install debian pkgs (should be added above)
RUN apt update
RUN apt install -y libpcap-dev \
libjson-c-dev \
libjsoncpp-dev \
psmisc \
net-tools \
libglfw3-dev libglew-dev libeigen3-dev libtclap-dev \
libproj-dev \
ffmpeg \
wmctrl \
xdotool \
iputils-ping \
python \
libcgal-dev
# Install ROS noetic on Ubuntu (http://wiki.ros.org/noetic/Installation/Ubuntu)
ENV DEBIAN_FRONTEND noninteractive
ENV ROS_DISTRO=melodic
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
RUN apt-get update && apt-get install -y ros-${ROS_DISTRO}-desktop ros-${ROS_DISTRO}-velodyne-pointcloud
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
RUN apt update && apt install -y python3-catkin-tools \
python-rosdep \
python-rosinstall \
python-rosinstall-generator \
python-wstool \
build-essential
# install debian pkgs
RUN apt install -y ros-${ROS_DISTRO}-ros-numpy \
ros-${ROS_DISTRO}-jsk-recognition-msgs \
ros-${ROS_DISTRO}-autoware-msgs \
ros-${ROS_DISTRO}-cv-bridge \
ros-${ROS_DISTRO}-image-transport \
ros-${ROS_DISTRO}-camera-info-manager \
ros-${ROS_DISTRO}-tf2-sensor-msgs \
ros-${ROS_DISTRO}-nmea-msgs \
ros-${ROS_DISTRO}-diagnostic-updater \
ros-${ROS_DISTRO}-roslint \
ros-${ROS_DISTRO}-angles \
ros-${ROS_DISTRO}-pcl-ros \
ros-${ROS_DISTRO}-ros-numpy \
ros-${ROS_DISTRO}-tf-conversions \
ros-${ROS_DISTRO}-tf2-geometry-msgs \
ros-${ROS_DISTRO}-rviz \
ros-${ROS_DISTRO}-jsk-rviz-plugins
ENV NVIDIA_VISIBLE_DEVICES \
${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES \
${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
WORKDIR /home/CUDA/