-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Samiya
committed
Feb 21, 2024
1 parent
4b3972b
commit e538a92
Showing
2 changed files
with
50 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
## 现在做 | ||
1. 配置文件中增加到期时间 | ||
2. 数据库中增加用户列 用于区分多用户数据 | ||
3. 加入自定义配置文件路径选择 | ||
4. hoyoyo-surugaya测试 | ||
5. Alpine的DD脚本/构建Alpine的容器 | ||
## 后面再做 | ||
1. 配置文件热重载 | ||
2. 系统接入telegram bot | ||
|
||
使用Alpine基础镜像:考虑使用基于Alpine Linux的Python镜像(如python:3.10-alpine),因为Alpine版本的镜像体积更小,运行时的资源占用也较低。这是因为Alpine使用musl libc和busybox,这些都是轻量级的替代品。 | ||
|
||
|
||
清理不必要的文件:在Dockerfile的构建过程中,确保移除任何不必要的文件,包括临时文件、构建依赖、缓存文件等。例如,使用apk add --no-cache来安装Alpine包,避免缓存文件被添加到镜像中。 | ||
### TODO List | ||
- [ ] 配置文件中增加用户到期时间项,以自动停止过期用户任务 | ||
- [ ] 数据库中增加用户名项,以区分多用户数据 | ||
- [x] 程序运行时允许自定义传入用户配置文件路径 -r -u | ||
- [ ] 测试hoyoyo的surugaya | ||
- [x] 优化docker容器打包后镜像大小及内存占用问题,清理不必要的文件,避免缓存文件被添加到镜像中。 | ||
- [x] 以Alpine为底包打包一份docker镜像,镜像体积更小,运行时的资源占用也较低 | ||
- [ ] 配置文件热重载问题 | ||
- [ ] 将监控系统接入telegram bot,以允许随时添加用户配置文件 或者停止用户任务 | ||
- [ ] Alpine的一键DD脚本 | ||
- [ ] 对于煤炉推送时间不一样的现象 观察它属于哪个排序? |
This file contains 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