copilot-swe-agent[bot]
cb93a1f0d3
fix: support non-root user container startup
...
- Guard /etc/resolv.conf write and crond behind root check in entrypoint;
non-root containers now stay alive via 'tail -f /dev/null' instead of
failing when crond exits with EPERM
- Set PM2_HOME to ${QL_DIR}/data/.pm2 (inside the data volume) so PM2
does not fall back to /root/.pm2, which is inaccessible to non-root users
- Pre-create /ql/.tmp and /ql/shell/preload during image build and make
them world-writable so non-root processes can write runtime files
- Wrap directory creation in initFile.ts with try/catch + recursive:true
so a permission error on ~/.ssh (HOME=/root for non-root user) is logged
as a warning instead of crashing the server init
2026-05-24 06:39:38 +00:00
whyour
544c432f49
修复 PATH 环境变量
2026-03-01 20:35:19 +08:00
whyour
177cd3de81
更新 docker 日志
2025-11-22 01:05:28 +08:00
Copilot
fbeb4f4a6c
Fix PM2 startup failures on ARM routers with Node.js incompatibility ( #2828 )
...
* Initial plan
* Add fallback mechanism for PM2 startup failures on incompatible hardware
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-16 20:29:32 +08:00
Copilot
eb09a417a1
Fix DNS resolution failures in Alpine containers by setting ndots:0 ( #2827 )
...
* Initial plan
* Fix DNS resolution issue in Alpine containers by adding ndots:0 option
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-16 20:28:12 +08:00
whyour
45fac29804
移除用户判断
2025-11-15 17:02:00 +08:00
Copilot
8f23c61fee
Add non-root Docker user support with automatic command setup ( #2830 )
...
* Initial plan
* Add non-root user guide and improve error messages
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add PM2_HOME configuration to fix non-root user permission errors
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Fix PM2 socket error by using /tmp for PM2_HOME instead of mounted volume
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Document symlink permission limitation for non-root users
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Clarify that scheduled tasks auto-adapt to use full paths when symlinks unavailable
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add error handling for symlink creation to prevent worker crashes
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Add practical solutions for non-root users to use ql and task commands
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Modify linkCommand to create symlinks in ~/bin for non-root users
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* 修复链接 task 命令
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Co-authored-by: whyour <imwhyour@gmail.com>
2025-11-15 01:46:24 +08:00
Copilot
214241797d
Fix QlPort and QlGrpcPort environment variables ignored in host network mode and pm2 reload ( #2825 )
...
* Initial plan
* Fix host mode port configuration by using QlPort environment variable
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Fix GRPC_PORT conflict in host network mode
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Ensure BACK_PORT and GRPC_PORT survive pm2 reload with --update-env
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Move env.sh sourcing after fix_config to preserve more environment variables
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Refactor: Extract export_ql_envs function and move env.sh sourcing earlier
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
* Extract load_ql_envs function and reorder initialization in docker-entrypoint.sh and update.sh
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-14 22:56:39 +08:00
whyour
18f27a9a69
移除 nginx
2025-11-02 19:29:59 +08:00
whyour
2e94d58758
修改启动命令环境变量
2025-05-18 22:02:55 +08:00
whyour
da639a1f8f
移除部分历史兼容逻辑
2025-05-09 15:37:05 +08:00
whyour
d871585eee
修改服务启动逻辑
2025-05-07 09:30:00 +08:00
whyour
162bd9d8cc
修复 config 引入顺序
2024-07-22 23:29:08 +08:00
whyour
e694570f1a
增加 task_before.js 和 task_before.py 文件,在执行任务前执行,避免环境变量过大报错
2024-07-22 01:07:00 +08:00
whyour
70f2bef5d2
修改 ql 和 task 命令生成逻辑
2024-05-29 22:09:01 +08:00
whyour
7a8a8ab9b3
修改系统重启逻辑
2024-03-14 17:37:52 +08:00
whyour
201f41e15b
修改镜像源设置样式
2024-01-01 22:33:20 +08:00
whyour
563457cf1b
JavaScript 通知文件 tunnel 替换为 hpagent,移除 scripts 目录下 package.json
2023-12-24 14:30:56 +08:00
whyour
59f7b72bb1
移除 ql -l 参数
2023-11-23 19:40:52 +08:00
whyour
4938635ef4
修复服务启动时环境变量污染
2023-10-20 17:54:32 +08:00
whyour
683482e067
修改 ql update 逻辑
2023-07-08 00:18:09 +08:00
whyour
41521f1d08
修复 token 任务脚本路径,容器启动 bot
2023-05-13 01:10:49 +08:00
whyour
50718ba714
修复 public 服务转发
2023-05-10 01:07:46 +08:00
whyour
5baa8e4391
增加 pm2 平滑重启
2023-05-06 00:09:03 +08:00
whyour
3d11210aeb
pnpm 版本降至 8.3.1
2023-05-05 00:26:23 +08:00
whyour
e1863407f2
修复 npm 源判断
2023-05-04 22:23:55 +08:00
whyour
0c28b63ab7
修改容器启动流程
2023-05-04 22:07:39 +08:00
whyour
d11d6d0c18
增加容器健康检查
2023-05-02 22:11:50 +08:00
whyour
4498449eea
修复容器启动逻辑
2023-04-11 14:15:34 +08:00
whyour
ebb9676a51
修复定时服务启动路径
2023-04-08 21:58:34 +08:00
whyour
f19dd21155
更新 readme
2023-04-01 21:05:21 +08:00
whyour
819b15b15e
容器增加 ipv6 检测,自动配置 nginx
2023-03-14 22:39:10 +08:00
whyour
97f128d59f
修改 ql extra 执行逻辑
2023-02-28 22:56:06 +08:00
whyour
cb870fad85
修改检查更新逻辑
2022-09-24 14:20:35 +08:00
whyour
36f4c3c02c
修改任务启动参数
2022-09-21 21:28:31 +08:00
whyour
ae891f8e55
修复docker启动逻辑
2022-09-21 17:42:13 +08:00
whyour
a2f2306430
增加批量重新安装依赖
2022-09-11 22:47:43 +08:00
whyour
687d16e21b
增加npm镜像源配置
2022-09-06 00:21:53 +08:00
whyour
1fe91508f6
修复baseUrl
2022-09-02 10:54:44 +08:00
whyour
b9253c8191
修复定时任务搜索api
2022-09-02 00:35:20 +08:00
whyour
ee52f09bcb
增加public服务,查询panel日志
2022-02-24 23:50:04 +08:00
whyour
cf5f1b6f25
调整数据目录
2022-02-19 13:08:14 +08:00
phoenix
5a6d3739d4
fix nginx can not run without /run/nginx ( #944 )
...
alpine3.12 和 alpine3.14 兼容性问题
2021-11-23 18:32:22 +08:00
whyour
8c14a31967
修复entrypoint启动失败
2021-11-12 13:16:53 +08:00
whyour
3c5925ff67
修复entrypoint
2021-11-07 11:25:18 +08:00
whyour
7d5687d504
修复 arm 没有nginx conf.d 目录
2021-11-07 11:08:21 +08:00
whyour
65ade4b996
修改shell语法
2021-11-05 23:39:22 +08:00
hanhh
0f31cb5fcc
容器启动忽略config和env中的错误
2021-10-13 14:25:38 +08:00
hanhh
bd1ca7e975
修复entrypoint启动nginx配置
2021-09-30 23:49:19 +08:00
hanhh
8336434d3f
容器启动时bot和自定义脚本改成后台运行
2021-07-08 23:11:00 +08:00