2015-10-08 05:46:12 +03:00
|
|
|
FROM ubuntu:vivid
|
|
|
|
MAINTAINER Joel Martin <github@martintribe.org>
|
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# General requirements for testing or common across many
|
|
|
|
# implementations
|
|
|
|
##########################################################
|
|
|
|
|
|
|
|
RUN apt-get -y update
|
|
|
|
|
|
|
|
# Required for running tests
|
|
|
|
RUN apt-get -y install make python
|
|
|
|
|
|
|
|
# Some typical implementation and test requirements
|
|
|
|
RUN apt-get -y install curl libreadline-dev libedit-dev
|
|
|
|
|
|
|
|
RUN mkdir -p /mal
|
|
|
|
WORKDIR /mal
|
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Specific implementation requirements
|
|
|
|
##########################################################
|
|
|
|
|
|
|
|
# For building rpython
|
|
|
|
RUN apt-get -y install g++
|
|
|
|
|
|
|
|
# pypy
|
|
|
|
RUN apt-get -y install software-properties-common
|
|
|
|
RUN add-apt-repository ppa:pypy
|
|
|
|
RUN apt-get -y update
|
|
|
|
RUN apt-get -y install pypy
|
|
|
|
|
|
|
|
# rpython
|
|
|
|
RUN apt-get -y install mercurial libffi-dev pkg-config libz-dev libbz2-dev \
|
2016-03-15 06:29:13 +03:00
|
|
|
libsqlite3-dev libncurses-dev libexpat1-dev libssl-dev libgdbm-dev tcl-dev
|
2015-10-08 05:46:12 +03:00
|
|
|
|
2015-10-09 22:38:27 +03:00
|
|
|
RUN mkdir -p /opt/pypy && \
|
2017-02-11 09:12:37 +03:00
|
|
|
curl -L https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.6.0-src.tar.bz2 | tar -xjf - -C /opt/pypy/ --strip-components=1
|
2016-03-15 06:29:13 +03:00
|
|
|
#curl https://bitbucket.org/pypy/pypy/get/tip.tar.gz | tar -xzf - -C /opt/pypy/ --strip-components=1
|
2017-02-11 09:12:37 +03:00
|
|
|
RUN cd /opt/pypy && make && rm -rf /tmp/usession*
|
2015-10-09 22:38:27 +03:00
|
|
|
|
|
|
|
RUN ln -sf /opt/pypy/rpython/bin/rpython /usr/local/bin/rpython
|
|
|
|
RUN ln -sf /opt/pypy/pypy-c /usr/local/bin/pypy
|
|
|
|
RUN chmod -R ugo+rw /opt/pypy/rpython/_cache
|
2015-10-08 07:32:45 +03:00
|
|
|
|
|
|
|
RUN apt-get -y autoremove pypy
|
|
|
|
|