mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-07 17:24:31 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 68b7d6d1f6 | |||
| bdfabeec74 | |||
| 5bba465722 | |||
| 22fcacbfe7 | |||
| 80d1ffb663 | |||
| 59f024b663 |
@@ -7,6 +7,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
- "develop"
|
- "develop"
|
||||||
|
- "test-overlay"
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
schedule:
|
schedule:
|
||||||
|
|||||||
+25
-1
@@ -76,7 +76,31 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
|
|||||||
|
|
||||||
WORKDIR ${QL_DIR}
|
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 \
|
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
||||||
CMD curl -sf --noproxy '*' http://127.0.0.1:5400/api/health || exit 1
|
CMD curl -sf --noproxy '*' http://127.0.0.1:5400/api/health || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
ENTRYPOINT ["/init"]
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "finish crond"
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
crond -f
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "finish ngnix"
|
||||||
@@ -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;"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "finish panel"
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "finish public"
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "finish schedule"
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "finish update"
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
Reference in New Issue
Block a user