-
Notifications
You must be signed in to change notification settings - Fork 1
/
container.Dockerfile
75 lines (64 loc) · 2.14 KB
/
container.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
ARG BASE_IMAGE=nvcr.io/nvidia/pytorch:22.08-py3
FROM ${BASE_IMAGE}
# Prevent anything requiring user input
ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=linux
ENV TZ=America
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Basic packages
RUN apt-get -y update \
&& apt-get -y install \
python3-pip \
sudo \
vim \
wget \
curl \
software-properties-common \
doxygen \
&& rm -rf /var/lib/apt/lists/*
# Install ROS noetic (desktop full)
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 | sudo apt-key add -
RUN apt-get -y update \
&& apt-get -y install ros-noetic-desktop-full \
&& rm -rf /var/lib/apt/lists/*
# Auxillary ROS installs
RUN apt-get -y update \
&& apt-get -y install \
python3-rosdep \
python3-rosinstall \
python3-rosinstall-generator \
python3-wstool \
build-essential \
python3-catkin-tools \
ros-noetic-ros-numpy \
ros-noetic-derived-object-msgs \
ros-noetic-ackermann-msgs \
ros-noetic-hector-trajectory-server \
&& rm -rf /var/lib/apt/lists/*
# Extra misc installs
RUN apt-get -y update \
&& sudo apt-get -y install \
libomp-dev \
mesa-utils \
apt-utils \
&& rm -rf /var/lib/apt/lists/*
# Cloner-specific installs
# COPY requirements.txt /tmp/requirements.txt
RUN pip3 install opencv-python pykitti \
&& pip3 install --user git+https://github.com/DanielPollithy/pypcd.git \
&& pip3 install rospkg \
&& pip3 install pycryptodomex \
&& pip3 install gnupg \
&& pip3 install opencv-python==4.5.5.64 \
&& pip3 install open3d \
&& pip3 install autopep8 \
&& pip3 install torch_tb_profiler \
&& pip3 install torchviz \
&& pip3 install --upgrade typing-extensions \
&& pip3 install more_itertools \
&& pip3 install pymesh \
&& pip3 install trimesh
RUN sudo rosdep init && rosdep update
# finish ROS setup
RUN echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc