Compare commits

...

6 Commits

Author SHA1 Message Date
whyour 68b7d6d1f6 test 2024-08-02 00:58:39 +08:00
whyour bdfabeec74 test 2024-08-02 00:14:06 +08:00
whyour 5bba465722 测试 2024-08-01 23:43:08 +08:00
whyour 22fcacbfe7 test 2024-08-01 00:03:41 +08:00
whyour 80d1ffb663 test 2024-07-31 23:49:35 +08:00
whyour 59f024b663 测试 overlay 2024-07-31 23:41:24 +08:00
21 changed files with 106 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ on:
branches:
- "master"
- "develop"
- "test-overlay"
tags:
- "v*"
schedule:
+25 -1
View File
@@ -76,7 +76,31 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
WORKDIR ${QL_DIR}
RUN apk --no-cache add -f s6-overlay
# ENV S6_VERSION=v3.2.0.0
# RUN ARCH=$(uname -m) && \
# case "$ARCH" in \
# x86_64) ARCH="amd64" ;; \
# aarch64) ARCH="aarch64" ;; \
# armv6l) ARCH="arm" ;; \
# armv7l) ARCH="armhf" ;; \
# i386) ARCH="x86" ;; \
# s390x) ARCH="s390x" ;; \
# ppc64le) ARCH="powerpc64le" ;; \
# *) echo "unsupported architecture"; exit 1 ;; \
# esac && \
# S6_OVERLAY_URL=https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-${ARCH}.tar.xz && \
# apk add --no-cache curl && \
# curl -L $S6_OVERLAY_URL -o /tmp/s6-overlay.tar.xz && \
# tar -C / -Jxpf /tmp/s6-overlay.tar.xz
COPY docker/s6-rc.d /etc/s6-overlay/s6-rc.d/
RUN chmod +x /etc/s6-overlay/s6-rc.d/*/run && \
chmod +x /etc/s6-overlay/s6-rc.d/*/finish
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
CMD curl -sf --noproxy '*' http://127.0.0.1:5400/api/health || exit 1
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
ENTRYPOINT ["/init"]
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
echo "finish crond"
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
crond -f
+1
View File
@@ -0,0 +1 @@
longrun
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
echo "finish ngnix"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
dir_shell=/ql/shell
. $dir_shell/share.sh
. $dir_shell/env.sh
import_config "$@"
make_dir /etc/nginx/conf.d
make_dir /run/nginx
init_nginx
fix_config
nginx -g "daemon off;"
+1
View File
@@ -0,0 +1 @@
longrun
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
echo "finish panel"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
dir_shell=/ql/shell
. $dir_shell/share.sh
. $dir_shell/env.sh
import_config "$@"
make_dir /etc/nginx/conf.d
make_dir /run/nginx
init_nginx
fix_config
node ${dir_static}/build/app.js
+1
View File
@@ -0,0 +1 @@
longrun
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
echo "finish public"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
dir_shell=/ql/shell
. $dir_shell/share.sh
. $dir_shell/env.sh
import_config "$@"
make_dir /etc/nginx/conf.d
make_dir /run/nginx
init_nginx
fix_config
node ${dir_static}/build/public.js
+1
View File
@@ -0,0 +1 @@
longrun
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
echo "finish schedule"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
dir_shell=/ql/shell
. $dir_shell/share.sh
. $dir_shell/env.sh
import_config "$@"
make_dir /etc/nginx/conf.d
make_dir /run/nginx
init_nginx
fix_config
node ${dir_static}/build/schedule/index.js
+1
View File
@@ -0,0 +1 @@
longrun
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
echo "finish update"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
dir_shell=/ql/shell
. $dir_shell/share.sh
. $dir_shell/env.sh
import_config "$@"
make_dir /etc/nginx/conf.d
make_dir /run/nginx
init_nginx
fix_config
node ${dir_static}/build/update.js
+1
View File
@@ -0,0 +1 @@
longrun