Skip to content

Commit 5ac059d

Browse files
authored
Merge pull request #28 from ryukinix/dockerfile-ci
Add Dockerfile & CI
2 parents e1ac102 + 39836f4 commit 5ac059d

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
- docker
3+
4+
script:
5+
- make docker-build
6+
- make docker-check

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM commonlispbr/roswell
2+
WORKDIR /app
3+
RUN ros install commonlispbr/quicksys
4+
RUN ros run -s quicksys -e "(qs:install-dist :ultralisp)" -q
5+
RUN ros run -s weblocks -s weblocks-ui -q
6+
COPY . .
7+
RUN ros install ./lisp-inference.asd
8+
RUN ros run -s lisp-inference/web -q
9+
EXPOSE 40000
10+
ENTRYPOINT "/root/.roswell/bin/inference-server"

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SBCL_CMD := sbcl --noinform --disable-debugger --load
22
OBJECTS := lisp-inference
3-
3+
DOCKER_IMG = lisp-inference
44

55
all: $(OBJECTS)
66

@@ -16,4 +16,13 @@ check:
1616
server:
1717
@$(SBCL_CMD) run-server.lisp
1818

19+
docker-build:
20+
docker build -t $(DOCKER_IMG) .
21+
22+
docker-run:
23+
docker run --rm -it --network=host $(DOCKER_IMG)
24+
25+
docker-check:
26+
docker run --rm -t --entrypoint=ros $(DOCKER_IMG) run -s lisp-inference/test -l run-test.lisp
27+
1928
.PHONY: check

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/ryukinix/lisp-inference.svg?branch=master)](https://travis-ci.org/ryukinix/lisp-inference)
2+
13
# Lisp Inference
24

35
A non-full featured Lisp Inference Engine because I didn't implemented

0 commit comments

Comments
 (0)