forked from openai/gym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test dockerfiles for ubuntu 14.04 and 18.04 (openai#1168)
* pass device_id=-1 when rendering mujoco in rgb_array mode * trying ubuntu18.04 build * use travis build matrix * use travis build matrix * use travis build matrix * use fix 18.04 installation steps * use fix 18.04 installation steps * try py3 instead of py35 * trying the 14.04 build; cleaning up the 16.04 package list * fixes to dockerfile.14.04 * fixes to dockerfile.14.04 * fixes to dockerfile.14.04 * fixes to dockerfile.14.04 * fixes to dockerfile.14.04 * fixing system package list for 14.04 * 16.04 build working * clean up test.dockerfile.16.04 * adding python-numpy system package * add patchelf * remove python-numpy from 16.04 dockerfile * 14.04 does not use mujoco (patchelf problem) * cleaning up 18.04 dockerfile * added comment to 14.04 dockerfile * fix syntax in 14.04 dockerfile * being fancy and switching from apt-get to apt command in 18.04 dockerfile * update README.rst to use apt (instead of apt-get) on ubuntu 18.04
- Loading branch information
Showing
9 changed files
with
126 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# A Dockerfile that sets up a full Gym install with test dependencies | ||
FROM ubuntu:14.04 | ||
# Note that latest version of mujoco-py, 1.5, does not play nicely with ubuntu 14.04 - | ||
# requires patchelf system package not available on 14.04 | ||
|
||
# Install keyboard-configuration separately to avoid travis hanging waiting for keyboard selection | ||
RUN \ | ||
apt-get -y update && \ | ||
apt-get install -y keyboard-configuration && \ | ||
|
||
apt-get install -y \ | ||
python-setuptools \ | ||
python-pip \ | ||
python3-dev \ | ||
libjpeg-dev \ | ||
cmake \ | ||
swig \ | ||
python-pyglet \ | ||
python3-opengl \ | ||
libboost-all-dev \ | ||
libsdl2-2.0.0 \ | ||
libsdl2-dev \ | ||
libglu1-mesa \ | ||
libglu1-mesa-dev \ | ||
libgles2-mesa-dev \ | ||
xvfb \ | ||
libav-tools \ | ||
freeglut3 \ | ||
wget \ | ||
unzip && \ | ||
|
||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install tox | ||
|
||
|
||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mjpro150/bin | ||
|
||
# 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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 \ | ||
zlib1g-dev \ | ||
libjpeg-dev \ | ||
cmake \ | ||
swig \ | ||
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 | ||
|
||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mjpro150/bin | ||
|
||
# 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters