forked from robot-colosseum/robot-colosseum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_nvidia
79 lines (63 loc) · 2.17 KB
/
Dockerfile_nvidia
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
FROM nvidia/opengl:1.2-glvnd-devel-ubuntu20.04
RUN :\
&& apt-get update -q \
&& export DEBIAN_FRONTEND=nointeractive \
&& apt-get install -y --no-install-recommends \
vim tar xz-utils curl git build-essential \
libx11-6 libxcb1 libxau6 libgl1-mesa-dev \
xvfb dbus-x11 x11-utils libxkbcommon-x11-0 \
libavcodec-dev libavformat-dev libswscale-dev \
python3 python3-dev python3-virtualenv \
libraw1394-11 libmpfr6 \
libusb-1.0-0 \
&& apt-get autoclean -y \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& :
RUN git config --global http.sslVerify false
RUN :\
&& groupadd -g 1000 randuser \
&& useradd -d /home/randuser -s /bin/bash -m randuser -u 1000 -g 1000
USER randuser
ENV HOME /home/randuser
RUN :\
&& curl -o ${HOME}/coppeliasim.tar.xz https://downloads.coppeliarobotics.com/V4_1_0/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz \
&& tar -xvf ${HOME}/coppeliasim.tar.xz -C ${HOME} \
&& rm ${HOME}/coppeliasim.tar.xz \
&& :
ENV COPPELIASIM_ROOT=${HOME}/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${COPPELIASIM_ROOT}
ENV QT_QPA_PLATFORM_PLUGIN_PATH=${COPPELIASIM_ROOT}
RUN :\
&& cd ${HOME} \
&& virtualenv venv && . venv/bin/activate \
&& git clone https://github.com/stepjam/PyRep.git ${HOME}/pyrep && cd pyrep \
&& git checkout 4.1.0 \
&& pip install -r requirements.txt \
&& pip install . \
&& :
RUN :\
&& cd ${HOME} \
&& . venv/bin/activate \
&& git clone https://github.com/stepjam/RLBench.git ${HOME}/rlbench && cd rlbench \
&& git checkout 7c3f425f4a0b6b5ce001ba7246354eb3c70555be \
&& pip install -r requirements.txt \
&& pip install . \
&& :
WORKDIR ${HOME}/colosseum
USER root
RUN chown -R randuser:randuser ${HOME}/colosseum
RUN chmod 755 ${HOME}/colosseum
USER randuser
COPY --chown=randuser:randuser . .
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=all
RUN :\
&& cd ${HOME} \
&& . venv/bin/activate \
&& cd ${HOME}/colosseum \
&& pip install -r requirements.txt \
&& pip install -e . \
&& mkdir /tmp/rlbench_data \
&& :