forked from openai/gym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.dockerfile.18.04
51 lines (44 loc) · 1.36 KB
/
test.dockerfile.18.04
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
# A Dockerfile that sets up a full Gym install with test dependencies
FROM ubuntu:18.04
# Install keyboard-configuration separately to avoid travis hanging waiting for keyboard selection
RUN \
apt -y update && \
apt install -y keyboard-configuration && \
apt install -y \
python-setuptools \
python-pip \
python3-dev \
python-pyglet \
python3-opengl \
libjpeg-dev \
libboost-all-dev \
libsdl2-dev \
libosmesa6-dev \
patchelf \
ffmpeg \
xvfb \
wget \
unzip && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
pip install tox && \
# Download mujoco
mkdir /root/.mujoco && \
cd /root/.mujoco && \
wget https://www.roboti.us/download/mjpro150_linux.zip && \
unzip mjpro150_linux.zip && \
wget https://www.roboti.us/download/mujoco200_linux.zip && \
unzip mujoco200_linux.zip && \
mv mujoco200_linux mujoco200
ARG MUJOCO_KEY
ENV MUJOCO_KEY=$MUJOCO_KEY
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mjpro150/bin
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mujoco200/bin
RUN echo $MUJOCO_KEY | base64 --decode > /root/.mujoco/mjkey.txt
# install dependencies
COPY . /usr/local/gym/
RUN cd /usr/local/gym && \
tox --notest
WORKDIR /usr/local/gym/
ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"]
CMD ["tox"]