1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 10:07:45 +03:00
mal/common-lisp/Dockerfile

52 lines
1.4 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
##########################################################
# Install git, make
RUN apt-get -y install git make
# Install sbcl
RUN apt-get -y install sbcl
# Install cl-asdf (CLISP does not seem to come with it)
RUN apt-get -y install cl-launch cl-asdf
RUN cd /tmp && \
git clone https://gitlab.common-lisp.net/xcvb/cl-launch.git && \
cd cl-launch && \
make install
# Install wget needed to install quicklisp
RUN apt-get -y install wget
# Install quicklisp
RUN HOME=/ && \
cd /tmp && \
wget https://beta.quicklisp.org/quicklisp.lisp && \
sbcl --load quicklisp.lisp --quit --eval '(quicklisp-quickstart:install)' --eval '(ql-util:without-prompting (ql:add-to-init-file))'
RUN chmod -R a+rwx /quicklisp
RUN chmod a+rwx /.sbclrc
RUN mkdir -p /.cache
RUN chmod -R a+rwx /.cache