Skip to content

Instantly share code, notes, and snippets.

@EderSantana
Created April 16, 2016 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EderSantana/7ad8158f18d360027d12d8592d25d35b to your computer and use it in GitHub Desktop.
Save EderSantana/7ad8158f18d360027d12d8592d25d35b to your computer and use it in GitHub Desktop.
# VERSION: 0.1
# DESCRIPTION: PLE
# AUTHOR: Eder Santana <edercsjr@gmail.com>
# 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 <edercsjr@gmail.com>
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