Skip to content

Commit

Permalink
Use Qlot for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Jul 9, 2024
1 parent 5090bd6 commit c1bbc17
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
22 changes: 18 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
ARG LISP=sbcl

FROM fukamachi/qlot AS build-env

WORKDIR /app
COPY qlfile /app
COPY qlfile.lock /app

RUN qlot install --no-deps

FROM fukamachi/${LISP} AS base

RUN ros -e '(ql-dist:install-dist "http://dist.ultralisp.org/" :prompt nil)'
RUN ros install fukamachi/cl-dbi rove
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libsqlite3-dev \
default-libmysqlclient-dev \
default-mysql-client && \
rm -rf /var/lib/apt/lists/*

COPY . /app
WORKDIR /app
COPY --from=build-env /app/.qlot /app/.qlot
RUN set -x; \
ros -e '(ql:update-dist "quicklisp" :prompt nil)' && \
ros install "fukamachi/qlot" rove

ENV CL_SOURCE_REGISTRY "/app/"
COPY qlfile /app
COPY qlfile.lock /app

COPY . /app
RUN qlot install

ENTRYPOINT "/app/docker/entrypoint.sh"
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ while ! mysql -u "$MYSQL_USER" \
sleep 1
done

ros -s mito-test
rove mito-test.asd
qlot exec ros -s mito-test
qlot exec rove mito-test.asd

0 comments on commit c1bbc17

Please sign in to comment.