2 MAINTAINER Joel Martin <github@martintribe.org>
4 ##########################################################
5 # General requirements for testing or common across many
7 ##########################################################
11 # Required for running tests
12 RUN apt-get -y install make python
14 # Some typical implementation and test requirements
15 RUN apt-get -y install curl libreadline-dev libedit-dev
20 ##########################################################
21 # Specific implementation requirements
22 ##########################################################
24 # For building rpython
25 RUN apt-get -y install g++
28 RUN apt-get -y install software-properties-common
29 RUN add-apt-repository ppa:pypy
31 RUN apt-get -y install pypy
34 RUN apt-get -y install mercurial libffi-dev pkg-config libz-dev libbz2-dev \
35 libsqlite3-dev libncurses-dev libexpat1-dev libssl-dev libgdbm-dev tcl-dev
37 RUN mkdir -p /opt/pypy && \
38 curl -L https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.6.0-src.tar.bz2 | tar -xjf - -C /opt/pypy/ --strip-components=1
39 #curl https://bitbucket.org/pypy/pypy/get/tip.tar.gz | tar -xzf - -C /opt/pypy/ --strip-components=1
40 RUN cd /opt/pypy && make && rm -rf /tmp/usession*
42 RUN ln -sf /opt/pypy/rpython/bin/rpython /usr/local/bin/rpython
43 RUN ln -sf /opt/pypy/pypy-c /usr/local/bin/pypy
44 RUN chmod -R ugo+rw /opt/pypy/rpython/_cache
46 RUN apt-get -y autoremove pypy