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.
Switch to Docker for tests (openai#285)
- Loading branch information
Showing
8 changed files
with
2,076 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.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
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,42 @@ | ||
# A Dockerfile that sets up a full Gym install | ||
FROM ubuntu:14.04 | ||
|
||
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 \ | ||
python3-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& easy_install pip | ||
|
||
WORKDIR /usr/local/gym | ||
RUN mkdir 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, upload our actual code! | ||
COPY . /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
Oops, something went wrong.