mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
测试 overlay
This commit is contained in:
parent
a743aa8115
commit
59f024b663
1
.github/workflows/build_docker_image.yml
vendored
1
.github/workflows/build_docker_image.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "develop"
|
||||
- "test-overlay"
|
||||
tags:
|
||||
- "v*"
|
||||
schedule:
|
||||
|
|
|
@ -76,7 +76,30 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
|
|||
|
||||
WORKDIR ${QL_DIR}
|
||||
|
||||
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
docker/s6-rc.d/crond/finish
Normal file
2
docker/s6-rc.d/crond/finish
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
echo "finish crond"
|
2
docker/s6-rc.d/crond/run
Normal file
2
docker/s6-rc.d/crond/run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
crond -f
|
2
docker/s6-rc.d/nginx/finish
Normal file
2
docker/s6-rc.d/nginx/finish
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
echo "finish ngnix"
|
12
docker/s6-rc.d/nginx/run
Normal file
12
docker/s6-rc.d/nginx/run
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/command/execlineb -P
|
||||
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
docker/s6-rc.d/panel/dependencies.d/schedule
Normal file
0
docker/s6-rc.d/panel/dependencies.d/schedule
Normal file
2
docker/s6-rc.d/panel/finish
Normal file
2
docker/s6-rc.d/panel/finish
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
echo "finish panel"
|
12
docker/s6-rc.d/panel/run
Normal file
12
docker/s6-rc.d/panel/run
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/command/execlineb -P
|
||||
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
|
2
docker/s6-rc.d/publilc/finish
Normal file
2
docker/s6-rc.d/publilc/finish
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
echo "finish public"
|
12
docker/s6-rc.d/publilc/run
Normal file
12
docker/s6-rc.d/publilc/run
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/command/execlineb -P
|
||||
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
|
2
docker/s6-rc.d/schedule/finish
Normal file
2
docker/s6-rc.d/schedule/finish
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
echo "finish schedule"
|
12
docker/s6-rc.d/schedule/run
Normal file
12
docker/s6-rc.d/schedule/run
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/command/execlineb -P
|
||||
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
|
2
docker/s6-rc.d/update/finish
Normal file
2
docker/s6-rc.d/update/finish
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/command/execlineb -P
|
||||
echo "finish update"
|
12
docker/s6-rc.d/update/run
Normal file
12
docker/s6-rc.d/update/run
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/command/execlineb -P
|
||||
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
|
Loading…
Reference in New Issue
Block a user