Skip to content

Commit

Permalink
Docker to build. #1
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenhombre committed Nov 21, 2022
1 parent 62017aa commit 04f1e73
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Docker build
run: echo OK

run: make docker
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM ubuntu

RUN apt-get -qq -y update
RUN apt-get -qq -y upgrade

RUN apt-get install -qq -y sbcl make curl git ecl

# Pull down Quicklisp and install it
RUN curl -s -o quicklisp.lisp https://beta.quicklisp.org/quicklisp.lisp

RUN ecl --load quicklisp.lisp \
--eval '(quicklisp-quickstart:install :path "/home/janice/quicklisp")' \
--eval '(ql:quickload :1am)'

RUN echo | ecl --load /home/janice/quicklisp/setup.lisp --eval '(ql:add-to-init-file)'
RUN echo | sbcl --load /home/janice/quicklisp/setup.lisp --eval '(ql:add-to-init-file)' --quit

ENV LISP_HOME=/home/janice/quicklisp/local-projects
WORKDIR /home/janice/steelcut

# Run the unit tests:
COPY . /home/janice/steelcut
# RUN make test-ecl
RUN make test
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean install test
.PHONY: clean install test docker

steelcut: src/*.lisp
./build.sh
Expand All @@ -9,6 +9,9 @@ test:
clean:
rm -rf steelcut

docker:
docker build -t steelcut .

install: steelcut
test -n "$(BINDIR)" # $$BINDIR
cp steelcut ${BINDIR}

0 comments on commit 04f1e73

Please sign in to comment.