Repository navigation
加上网站和抓取节点的部署文件 - #111
Merged
Merged
加上网站和抓取节点的部署文件#111
Conversation
照鼠洞的做法部署:GitHub Actions 在版本标签上构建镜像推到 GHCR,两台机器只拉镜像、用 compose 跑。 - 网站的 Dockerfile,以及服务器上用的 compose、OpenResty 配置和 Gatus 的两条检查 - 抓取节点的 compose:挂卷存读过的图片,停止时等进行中的几轮做完,给 Chromium 256MB 共享内存 - release 工作流:打 v* 标签时构建 mouseclock-web 和 mouseclock-crawler 两个镜像 - 总体设计 §16 写上镜像、目录、端口、数据库、反代、发布、备份、日志和监控
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
路线图 #2:一期做完先部署内测。
改了什么
照鼠洞的做法部署(鼠洞
docs/design.md§12):在main上打版本标签时,GitHub Actions 构建镜像推到 GHCR,两台机器只拉镜像、用 compose 跑。web/Dockerfile:多阶段构建,以node用户运行,带健康检查。V8 堆 256MB,因为抓取节点一次最多交 50MB 的文件。web/deploy/:服务器上用的 compose,只监听127.0.0.1:3280,根文件系统只读,内存上限 512MB;1Panel 反代用的 OpenResty 配置,请求体上限 50MB;Gatus 的两条检查。crawler/deploy/compose.yml。.github/workflows/release.yml,打v*标签时并行构建mouseclock-web和mouseclock-crawler两个镜像。怎么验证的
/healthz返回 ok,首页和压缩过的静态文件正常,内存约 60MB。docker compose config;网站prettier --check通过。linux/amd64,本机建的是 arm64。DOCKER_CONFIG拉镜像,已写进 §16。影响