mirror of
https://github.com/kanaka/mal.git
synced 2024-09-17 16:47:22 +03:00
- Reorder README to have implementation list after "learning tool" bullet. - This also moves tests/ and libs/ into impls. It would be preferrable to have these directories at the top level. However, this causes difficulties with the wasm implementations which need pre-open directories and have trouble with paths starting with "../../". So in lieu of that, symlink those directories to the top-level. - Move the run_argv_test.sh script into the tests directory for general hygiene.
36 lines
1.2 KiB
Docker
36 lines
1.2 KiB
Docker
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
|
|
##########################################################
|
|
|
|
# Erlang R17 (so I can use maps)
|
|
RUN apt-get -y install build-essential libncurses5-dev libssl-dev
|
|
RUN cd /tmp && curl -O http://www.erlang.org/download/otp_src_17.5.tar.gz \
|
|
&& tar -C /tmp -zxf /tmp/otp_src_17.5.tar.gz \
|
|
&& cd /tmp/otp_src_17.5 && ./configure && make && make install \
|
|
&& rm -rf /tmp/otp_src_17.5 /tmp/otp_src_17.5.tar.gz
|
|
# Rebar for building the Erlang implementation
|
|
RUN apt-get -y install git sudo
|
|
RUN cd /tmp/ && git clone -q https://github.com/rebar/rebar.git \
|
|
&& cd /tmp/rebar && ./bootstrap && cp rebar /usr/local/bin \
|
|
&& rm -rf /tmp/rebar
|
|
|