-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (25 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This image is only intended to run the tests
FROM ubuntu:22.04 AS base
RUN apt-get -qq update &&\
apt-get -qq install -y sbcl curl gcc git
WORKDIR /opt
RUN curl -s 'https://beta.quicklisp.org/quicklisp.lisp' > /opt/quicklisp.lisp
RUN sbcl --noinform --load /opt/quicklisp.lisp\
--eval '(quicklisp-quickstart:install :path "/opt/quicklisp")'\
--eval '(sb-ext:quit)'
RUN echo '(load "/opt/quicklisp/setup.lisp")' > /root/.sbclrc
RUN mkdir -p quicklisp
RUN mkdir -p /opt/data
RUN apt-get -qq remove curl -y &&\
apt-get -qq autoremove -y &&\
apt-get -qq autoclean -y
from base AS build
WORKDIR /opt
ADD src quicklisp/local-projects/grph/src
ADD test quicklisp/local-projects/grph/test
ADD grph.asd quicklisp/local-projects/grph
ADD run-tests.sh quicklisp/local-projects/grph/run-tests.sh
RUN mkdir -p ~/quicklisp/ && ln -s /opt/quicklisp/setup.lisp ~/quicklisp/setup.lisp
RUN git clone https://github.com/inconvergent/cl-veq.git quicklisp/local-projects/veq
WORKDIR /opt/quicklisp/local-projects/grph/
CMD ["bash", "./run-tests.sh"]