-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
39 lines (35 loc) · 1021 Bytes
/
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
ARG ROS_DISTRO=latest
FROM ros:$ROS_DISTRO
ARG ROS_DISTRO
ENV ROS_DISTRO=${ROS_DISTRO}
RUN \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update -yq && apt-get install -yq \
apt-utils \
git \
sudo \
tmux \
vim \
htop \
zsh \
net-tools \
iputils-* \
curl \
wget \
iproute2 \
build-essential \
mesa-utils \
ros-${ROS_DISTRO}-desktop \
&& \
rm -rf /var/lib/apt/lists/*
ARG NVIDIA_DRIVER_VERSION
ENV NVIDIA_DRIVER_VERSION=${NVIDIA_DRIVER_VERSION}
RUN \
if [ ! -z "${NVIDIA_DRIVER_VERSION}" ] ; then \
BASE_URL=http://us.download.nvidia.com/XFree86/Linux-$(uname -m)/${NVIDIA_DRIVER_VERSION}/NVIDIA-Linux-$(uname -m)-${NVIDIA_DRIVER_VERSION}.run ;\
response=$(curl --write-out '%{http_code}' --silent --output nvidia-driver.run $BASE_URL) ;\
if [[ "$response" != "404" ]] ; then \
chmod +x nvidia-driver.run ;\
./nvidia-driver.run --accept-license --ui=none --no-kernel-module --no-questions --no-systemd;\
fi ;\
fi