Created
April 16, 2016 02:24
-
-
Save EderSantana/7ad8158f18d360027d12d8592d25d35b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# VERSION: 0.1 | |
# DESCRIPTION: PLE | |
# AUTHOR: Eder Santana <[email protected]> | |
# COMMENTS: | |
# Pygame learning environment | |
# SETUP: | |
# # Download PLE Dockerfile | |
# wget ... | |
# | |
# # Build atom image | |
# docker build -t ple . | |
# | |
# UBUNTU: | |
# docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
# -e DISPLAY=unix$DISPLAY ple /bin/bash | |
# | |
# MAC: | |
# in a separate window run: | |
# brew install socat | |
# socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" | |
# finally: | |
# run ifcongi and look for the ip of vboxnet0, say 192.168.99.1 | |
# docker run -i -t -e DISPLAY=192.168.99.1:0 ple /bin/bash | |
# | |
# USAGE: | |
# cd ple | |
# python keras_flappybird.py | |
# FROM ubuntu:14.04 | |
FROM ubuntu | |
MAINTAINER Eder Santana <[email protected]> | |
RUN apt-get update && apt-get install -y \ | |
python-dev \ | |
python-pip \ | |
python-numpy \ | |
python-scipy \ | |
mercurial \ | |
libav-tools \ | |
libsdl-image1.2-dev \ | |
libsdl-mixer1.2-dev \ | |
libsdl-ttf2.0-dev \ | |
libsmpeg-dev \ | |
libsdl1.2-dev \ | |
libportmidi-dev \ | |
libswscale-dev \ | |
libavformat-dev \ | |
libavcodec-dev \ | |
git | |
RUN hg clone https://bitbucket.org/pygame/pygame && cd pygame && python setup.py build && sudo python setup.py install && cd .. | |
RUN pip install keras git+https://github.com/ntasfi/PyGame-Learning-Environment.git | |
RUN git clone https://gist.github.com/4bbde85f7cd47850e8f099041cc67be2.git ple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment