Commit 596b074 1 parent 5090bd6 commit 596b074 Copy full SHA for 596b074
File tree 8 files changed +65
-16
lines changed
8 files changed +65
-16
lines changed Original file line number Diff line number Diff line change
1
+ .qlot
Original file line number Diff line number Diff line change 9
9
10
10
t /test.db
11
11
.qlot /
12
- qlfile
13
- qlfile.lock
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ services:
10
10
- LISP=${LISP:-sbcl}
11
11
restart : " no"
12
12
volumes :
13
- - ./:/app/
13
+ - .:/app
14
+ - /app/.qlot
14
15
depends_on :
15
16
- postgres
16
17
- mysql
@@ -26,7 +27,8 @@ services:
26
27
container_name : mito-postgres
27
28
image : " postgres:10"
28
29
hostname : mito-test-postgres
29
- restart : always
30
+ ports :
31
+ - " 5432:5432"
30
32
environment :
31
33
POSTGRES_USER : mito
32
34
POSTGRES_PASSWORD : mito
@@ -35,7 +37,8 @@ services:
35
37
container_name : mito-mysql
36
38
image : " mysql:8.4"
37
39
hostname : mito-test-mysql
38
- restart : always
40
+ ports :
41
+ - " 3306:3306"
39
42
command : --mysql_native_password=ON
40
43
environment :
41
44
MYSQL_ROOT_PASSWORD : mito
Original file line number Diff line number Diff line change 1
1
ARG LISP=sbcl
2
+
3
+ FROM fukamachi/qlot AS build-env
4
+
5
+ WORKDIR /app
6
+ COPY qlfile /app
7
+ COPY qlfile.lock /app
8
+
9
+ RUN qlot install --no-deps
10
+
2
11
FROM fukamachi/${LISP} AS base
3
12
4
- RUN ros -e '(ql-dist:install-dist "http://dist.ultralisp.org/" :prompt nil)'
5
- RUN ros install fukamachi/cl-dbi rove
6
13
RUN apt-get update && \
7
14
apt-get install -y --no-install-recommends \
8
15
libsqlite3-dev \
9
16
default-libmysqlclient-dev \
10
17
default-mysql-client && \
11
18
rm -rf /var/lib/apt/lists/*
12
19
13
- COPY . /app
14
20
WORKDIR /app
21
+ RUN set -x; \
22
+ ros -e '(ql:update-dist "quicklisp" :prompt nil)' && \
23
+ ros install "fukamachi/qlot"
15
24
16
- ENV CL_SOURCE_REGISTRY "/app/"
25
+ COPY --from=build-env /app/.qlot /app/.qlot
26
+
27
+ COPY . /app
28
+ RUN qlot install
17
29
18
30
ENTRYPOINT "/app/docker/entrypoint.sh"
Original file line number Diff line number Diff line change 3
3
set -x
4
4
set -e
5
5
6
+ qlot exec ros -s mito-test
7
+
6
8
while ! mysql -u " $MYSQL_USER " \
7
9
-h " $MYSQL_HOST " \
8
10
-P " $MYSQL_PORT " \
@@ -11,5 +13,4 @@ while ! mysql -u "$MYSQL_USER" \
11
13
sleep 1
12
14
done
13
15
14
- ros -s mito-test
15
- rove mito-test.asd
16
+ .qlot/bin/rove mito-test.asd
Original file line number Diff line number Diff line change
1
+ ql cl-dbi :upstream
2
+ ql cl-mysql :upstream
3
+ ql dissect :upstream
4
+ ql sxql :upstream
5
+ ql rove :upstream
Original file line number Diff line number Diff line change
1
+ ("quicklisp" .
2
+ (:class qlot/source/dist:source-dist
3
+ :initargs (:distribution "https://beta.quicklisp.org/dist/quicklisp.txt" :%version :latest)
4
+ :version "2023-10-21"))
5
+ ("cl-dbi" .
6
+ (:class qlot/source/ql:source-ql-upstream
7
+ :initargs nil
8
+ :version "ql-upstream-2ff41f0706180e140a31b844da4f0272e1a281cd"
9
+ :remote-url "https://github.com/fukamachi/cl-dbi.git"))
10
+ ("cl-mysql" .
11
+ (:class qlot/source/ql:source-ql-upstream
12
+ :initargs nil
13
+ :version "ql-upstream-b273cf772f13a525b534f5ee58bf36fb733204f3"
14
+ :remote-url "https://github.com/hackinghat/cl-mysql.git"))
15
+ ("dissect" .
16
+ (:class qlot/source/ql:source-ql-upstream
17
+ :initargs nil
18
+ :version "ql-upstream-a70cabcd748cf7c041196efd711e2dcca2bbbb2c"
19
+ :remote-url "https://github.com/Shinmera/dissect.git"))
20
+ ("sxql" .
21
+ (:class qlot/source/ql:source-ql-upstream
22
+ :initargs nil
23
+ :version "ql-upstream-c79c252bef276bb0343ced5149083e3b91d85d9b"
24
+ :remote-url "https://github.com/fukamachi/sxql.git"))
25
+ ("rove" .
26
+ (:class qlot/source/ql:source-ql-upstream
27
+ :initargs nil
28
+ :version "ql-upstream-cacea7331c10fe9d8398d104b2dfd579bf7ea353"
29
+ :remote-url "https://github.com/fukamachi/rove.git"))
Original file line number Diff line number Diff line change 34
34
:port (parse-integer
35
35
(or (uiop :getenv " POSTGRES_PORT" )
36
36
" 5432" ))
37
- :username (or (uiop :getenv " POSTGRES_USER" ) " nobody " )
38
- :password (or (uiop :getenv " POSTGRES_PASS" ) " nobody " )
37
+ :username (or (uiop :getenv " POSTGRES_USER" ) " mito " )
38
+ :password (or (uiop :getenv " POSTGRES_PASS" ) " mito " )
39
39
:microsecond-precision t ))
40
40
41
41
(defun mysql-disconnect-from-testdb (conn)
44
44
(defun mysql-connect-to-testdb ()
45
45
(dbi :connect :mysql
46
46
:database-name " mito"
47
- :host (or (uiop :getenv " MYSQL_HOST" ) " localhost " )
47
+ :host (or (uiop :getenv " MYSQL_HOST" ) " 0.0.0.0 " )
48
48
:port (parse-integer
49
49
(or (uiop :getenv " MYSQL_PORT" )
50
50
" 3306" ))
51
- :username (or (uiop :getenv " MYSQL_USER" ) " nobody " )
52
- :password (or (uiop :getenv " MYSQL_PASS" ) " nobody " )))
51
+ :username (or (uiop :getenv " MYSQL_USER" ) " root " )
52
+ :password (or (uiop :getenv " MYSQL_PASS" ) " mito " )))
53
53
54
54
(defun disconnect-from-testdb (conn)
55
55
(funcall
You can’t perform that action at this time.
0 commit comments