File tree Expand file tree Collapse file tree 5 files changed +32
-18
lines changed Expand file tree Collapse file tree 5 files changed +32
-18
lines changed Original file line number Diff line number Diff line change 17
17
# Use docker.io for Docker Hub if empty
18
18
REGISTRY : ghcr.io
19
19
# github.repository as <account>/<repo>
20
- IMAGE_NAME : ${{ github.repository }}
20
+ IMAGE_NAME : star-server
21
21
22
22
23
23
jobs :
57
57
with :
58
58
registry : ${{ env.REGISTRY }}
59
59
username : ${{ github.actor }}
60
- password : ${{ secrets.GITHUB_TOKEN }}
60
+ password : ${{ secrets.PTOKEN }}
61
61
62
62
# Extract metadata (tags, labels) for Docker
63
63
# https://github.com/docker/metadata-action
Original file line number Diff line number Diff line change 1
1
FROM fukamachi/qlot:latest as build
2
- RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt set -x; \
2
+
3
+ RUN --mount=type=cache,target=/var/cache/apt \
4
+ --mount=type=cache,target=/var/lib/apt \
5
+ set -x; \
3
6
apt-get update && \
4
7
apt-get install -y \
5
- make \
6
- libffi-dev \
7
- pkg-config \
8
- librabbitmq-dev \
9
- build-essential
8
+ make \
9
+ libffi-dev \
10
+ pkg-config \
11
+ librabbitmq-dev \
12
+ build-essential
10
13
11
14
RUN ros setup
12
15
13
16
COPY . /root/
14
17
15
18
WORKDIR /root/
16
19
RUN qlot install
17
- RUN qlot exec make build
18
- RUN make install
20
+ RUN qlot exec sbcl --non-interactive \
21
+ --load source/starintel-gserver.asd \
22
+ --eval '(ql:quickload :starintel-gserver)' \
23
+ --eval "(sb-ext:save-lisp-and-die \" star-server\" :toplevel 'star::main :executable t)"
24
+
25
+
19
26
FROM build as star-server
27
+
28
+ VOLUME /config
20
29
EXPOSE 5000
30
+ RUN echo '#!/bin/sh\n \
31
+ set -e\n \
32
+ # Check if /config/init.lisp exists; if not, use /root/init.lisp\n \
33
+ INIT_FILE="/config/init.lisp"\n \
34
+ if [ ! -f "$INIT_FILE" ]; then\n \
35
+ echo "/config/init.lisp not found. Using default /root/example_configs/init.lisp."\n \
36
+ INIT_FILE="/root/example_configs/init.lisp"\n \
37
+ fi\n \
38
+ # Execute the server with the determined init file\n \
39
+ exec /root/star-server start -i "$INIT_FILE"' > /usr/local/bin/entrypoint.sh \
40
+ && chmod +x /usr/local/bin/entrypoint.sh
21
41
22
- ENTRYPOINT ./star-server
23
- CMD [./star-server]
42
+ ENTRYPOINT ["/usr/local/bin/entrypoint.sh" ]
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
ql serapeum :latest
3
3
ql alexandria :latest
4
4
ql babel :latest
5
- ql cl-json :latest
6
5
ql uuid :latest
7
6
ql anypool :latest
8
7
ql clack :latest
Original file line number Diff line number Diff line change 30
30
# :cl-rabbit
31
31
# :sento
32
32
# :babel
33
- # :cl-json
34
- :uuid
35
- ; ; Not using
33
+ # :uuid
36
34
# :anypool
37
35
# :clack
38
36
# :ningle
39
- ; ; Will use wookie
40
37
# :clingon
41
- ; ; Move to config
42
38
# :slynk
43
39
# :nhooks
44
40
# :lparallel
You can’t perform that action at this time.
0 commit comments