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.
travis build and test failure fixes (openai#1031)
* build test image from scratch from ubuntu:16.04 * removed pulling old image from .travis.yml * try installing keyboard-configuration on docker on travis * trying install keyboard-configuration before rest of the packages * upgrading dockerfile and entrypoint to work with ubuntu16.04 * fixing dummy display config wip * install keyboard-properties first in dockerfile * pass mujoco_key in .travis.yml * skipsdist in tox.ini * removed unpacking of the mujoco bundle in entrypoint * using xvfb for fake display * comment out self.viewer.close * install ffmpeg * squash run commands in dockerfile * fixed typo in dockerfile * fixed typo in dockerfile * fixed typo in dockerfile * use self.np_random in robotics/hand/manipulate * some cleanups in .travis.yml * cleaning up accidental changes * cleaning up accidental changes * inject mujoco key on runtime (instead of container buildtime) * remove webhooks section from .travis.yml
- Loading branch information
Showing
8 changed files
with
72 additions
and
72 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 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
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 |
---|---|---|
@@ -1,44 +1,62 @@ | ||
# A Dockerfile that sets up a full Gym install | ||
FROM quay.io/openai/gym:base | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y libav-tools \ | ||
python-numpy \ | ||
python-scipy \ | ||
python-pyglet \ | ||
python-setuptools \ | ||
libpq-dev \ | ||
libjpeg-dev \ | ||
curl \ | ||
cmake \ | ||
swig \ | ||
python-opengl \ | ||
libboost-all-dev \ | ||
libsdl2-dev \ | ||
wget \ | ||
unzip \ | ||
git \ | ||
xpra \ | ||
libav-tools \ | ||
python3-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& easy_install pip | ||
# A Dockerfile that sets up a full Gym install with test dependencies | ||
FROM ubuntu:16.04 | ||
|
||
WORKDIR /usr/local/gym/ | ||
RUN mkdir -p gym && touch gym/__init__.py | ||
COPY ./gym/version.py ./gym/ | ||
COPY ./requirements.txt ./ | ||
COPY ./setup.py ./ | ||
COPY ./tox.ini ./ | ||
|
||
RUN pip install tox | ||
# Install the relevant dependencies. Keep printing so Travis knows we're alive. | ||
RUN ["bash", "-c", "( while true; do echo '.'; sleep 60; done ) & tox --notest"] | ||
|
||
# Finally, clean cached code (including dot files) and upload our actual code! | ||
RUN mv .tox /tmp/.tox && rm -rf .??* * && mv /tmp/.tox .tox | ||
# Install keyboard-configuration separately to avoid travis hanging waiting for keyboard selection | ||
RUN \ | ||
apt-get -y update && \ | ||
apt-get install -y keyboard-configuration && \ | ||
|
||
# Maybe Install python3.6 on ubuntu 16.04 ? | ||
# apt-get install -y software-properties-common && \ | ||
# add-apt-repository -y ppa:jonathonf/python-3.6 && \ | ||
# apt-get -y update && \ | ||
# apt-get -y install python3.6 python3.6-distutils python3.6-dev | ||
|
||
apt-get install -y \ | ||
python-setuptools \ | ||
python-pip \ | ||
libpq-dev \ | ||
zlib1g-dev \ | ||
libjpeg-dev \ | ||
curl \ | ||
cmake \ | ||
swig \ | ||
python-opengl \ | ||
python-numpy \ | ||
python-pyglet \ | ||
python3-opengl \ | ||
libboost-all-dev \ | ||
libsdl2-dev \ | ||
libosmesa6-dev \ | ||
patchelf \ | ||
wget \ | ||
unzip \ | ||
git \ | ||
vim \ | ||
xvfb \ | ||
ffmpeg \ | ||
python3-dev && \ | ||
|
||
apt-get 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 && \ | ||
|
||
# setup vim to be humane and compatible with codebase standards | ||
echo "set expandtab number shiftwidth=4 tabstop=4" > /root/.vimrc | ||
|
||
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