@whyour/qinglong 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +3 -0
- package/README-NODE.md +10 -0
- package/back/protos/api.proto +10 -0
- package/cli/README.en.md +156 -0
- package/cli/README.md +156 -0
- package/cli/src/internal/maintenance/nodeRuntime.cjs +18 -0
- package/cli/src/internal/maintenance/panelUpgrade.cjs +577 -0
- package/cli/src/internal/maintenance/platformBundle.cjs +582 -0
- package/cli/src/internal/maintenance/upgradeArtifacts.cjs +979 -0
- package/cli/src/internal/maintenance/upgradePrestart.cjs +396 -0
- package/ecosystem.config.js +3 -0
- package/package.json +53 -10
- package/sample/notify.js +308 -135
- package/sample/notify.py +174 -27
- package/shell/api.sh +18 -7
- package/shell/install-bundle.cjs +320 -0
- package/shell/install-package.cjs +74 -0
- package/shell/lang/en.sh +38 -0
- package/shell/node-runtime-probe.cjs +62 -0
- package/shell/otask.sh +38 -36
- package/shell/preload/client.js +1 -0
- package/shell/preload/notificationAudit.js +51 -0
- package/shell/preload/sitecustomize.js +3 -3
- package/shell/preload/sitecustomize.py +5 -5
- package/shell/rmlog.sh +21 -16
- package/shell/share.sh +61 -44
- package/shell/start-simplify.sh +90 -0
- package/shell/start.sh +48 -71
- package/shell/task-timeout.sh +22 -10
- package/shell/task.sh +7 -7
- package/shell/update.sh +52 -38
- package/shell/upgrade-lock.yaml +16122 -0
- package/shell/upgrade.cjs +1 -1
- package/static/build/api/clientIp.js +2 -1
- package/static/build/api/clientIp.js.map +1 -0
- package/static/build/api/config.js.map +1 -0
- package/static/build/api/cron.js.map +1 -0
- package/static/build/api/dashboard.js.map +1 -0
- package/static/build/api/dependence.js.map +1 -0
- package/static/build/api/env.js.map +1 -0
- package/static/build/api/health.js.map +1 -0
- package/static/build/api/index.js.map +1 -0
- package/static/build/api/log.js.map +1 -0
- package/static/build/api/open.js.map +1 -0
- package/static/build/api/retention.js.map +1 -0
- package/static/build/api/script.js.map +1 -0
- package/static/build/api/subscription.js.map +1 -0
- package/static/build/api/system.js +18 -0
- package/static/build/api/system.js.map +1 -0
- package/static/build/api/update.js.map +1 -0
- package/static/build/api/user.js.map +1 -0
- package/static/build/app.js +10 -23
- package/static/build/app.js.map +1 -0
- package/static/build/bootstrap/database.js.map +1 -0
- package/static/build/bootstrap/upgradeProbe.js +154 -0
- package/static/build/bootstrap/upgradeProbe.js.map +1 -0
- package/static/build/config/const.js +2 -1
- package/static/build/config/const.js.map +1 -0
- package/static/build/config/container.js.map +1 -0
- package/static/build/config/grpcCerts.js.map +1 -0
- package/static/build/config/http.js.map +1 -0
- package/static/build/config/index.js.map +1 -0
- package/static/build/config/serverEnv.js.map +1 -0
- package/static/build/config/share.js.map +1 -0
- package/static/build/config/subscription.js.map +1 -0
- package/static/build/config/util.js +178 -79
- package/static/build/config/util.js.map +1 -0
- package/static/build/data/cron.js.map +1 -0
- package/static/build/data/cronStats.js.map +1 -0
- package/static/build/data/cronView.js.map +1 -0
- package/static/build/data/dependence.js.map +1 -0
- package/static/build/data/env.js.map +1 -0
- package/static/build/data/index.js.map +1 -0
- package/static/build/data/notify.js.map +1 -0
- package/static/build/data/open.js.map +1 -0
- package/static/build/data/runningInstance.js.map +1 -0
- package/static/build/data/sock.js.map +1 -0
- package/static/build/data/subscription.js.map +1 -0
- package/static/build/data/system.js +3 -1
- package/static/build/data/system.js.map +1 -0
- package/static/build/interface/schedule.js.map +1 -0
- package/static/build/loaders/app.js.map +1 -0
- package/static/build/loaders/bootAfter.js.map +1 -0
- package/static/build/loaders/db.js.map +1 -0
- package/static/build/loaders/depInjector.js.map +1 -0
- package/static/build/loaders/deps.js.map +1 -0
- package/static/build/loaders/express.js +8 -3
- package/static/build/loaders/express.js.map +1 -0
- package/static/build/loaders/httpApplication.js +55 -0
- package/static/build/loaders/httpApplication.js.map +1 -0
- package/static/build/loaders/initData.js.map +1 -0
- package/static/build/loaders/initFile.js.map +1 -0
- package/static/build/loaders/initTask.js +1 -1
- package/static/build/loaders/initTask.js.map +1 -0
- package/static/build/loaders/logger.js.map +1 -0
- package/static/build/loaders/server.js.map +1 -0
- package/static/build/loaders/sock.js.map +1 -0
- package/static/build/middlewares/monitoring.js.map +1 -0
- package/static/build/middlewares/protectedPathCase.js.map +1 -0
- package/static/build/middlewares/uniqueConstraintError.js.map +1 -0
- package/static/build/middlewares/validationErrors.js +17 -0
- package/static/build/middlewares/validationErrors.js.map +1 -0
- package/static/build/protos/api.js +140 -2
- package/static/build/protos/api.js.map +1 -0
- package/static/build/protos/cron.js.map +1 -0
- package/static/build/protos/health.js.map +1 -0
- package/static/build/schedule/addCron.js +2 -2
- package/static/build/schedule/addCron.js.map +1 -0
- package/static/build/schedule/api.js +21 -2
- package/static/build/schedule/api.js.map +1 -0
- package/static/build/schedule/client.js.map +1 -0
- package/static/build/schedule/data.js.map +1 -0
- package/static/build/schedule/delCron.js +5 -3
- package/static/build/schedule/delCron.js.map +1 -0
- package/static/build/schedule/health.js.map +1 -0
- package/static/build/schedule/setConcurrency.js.map +1 -0
- package/static/build/services/config.js.map +1 -0
- package/static/build/services/cron.js +7 -7
- package/static/build/services/cron.js.map +1 -0
- package/static/build/services/cronView.js.map +1 -0
- package/static/build/services/dependence.js +48 -13
- package/static/build/services/dependence.js.map +1 -0
- package/static/build/services/env.js.map +1 -0
- package/static/build/services/grpc.js +2 -2
- package/static/build/services/grpc.js.map +1 -0
- package/static/build/services/health.js +2 -0
- package/static/build/services/health.js.map +1 -0
- package/static/build/services/http.js.map +1 -0
- package/static/build/services/log.js.map +1 -0
- package/static/build/services/metrics.js +2 -1
- package/static/build/services/metrics.js.map +1 -0
- package/static/build/services/notify.js +45 -24
- package/static/build/services/notify.js.map +1 -0
- package/static/build/services/open.js.map +1 -0
- package/static/build/services/retention.js.map +1 -0
- package/static/build/services/schedule.js +13 -12
- package/static/build/services/schedule.js.map +1 -0
- package/static/build/services/script.js.map +1 -0
- package/static/build/services/scriptHistory.js.map +1 -0
- package/static/build/services/sock.js.map +1 -0
- package/static/build/services/sshKey.js +8 -5
- package/static/build/services/sshKey.js.map +1 -0
- package/static/build/services/subscription.js.map +1 -0
- package/static/build/services/system.js +76 -46
- package/static/build/services/system.js.map +1 -0
- package/static/build/services/user.js +2 -2
- package/static/build/services/user.js.map +1 -0
- package/static/build/shared/auth.js.map +1 -0
- package/static/build/shared/authMutation.js.map +1 -0
- package/static/build/shared/childProcess.js.map +1 -0
- package/static/build/shared/clientIp.js.map +1 -0
- package/static/build/shared/cronCommand.js.map +1 -0
- package/static/build/shared/cronSchedule.js +65 -9
- package/static/build/shared/cronSchedule.js.map +1 -0
- package/static/build/shared/cronScheduler.js +3 -2
- package/static/build/shared/cronScheduler.js.map +1 -0
- package/static/build/shared/errors.js.map +1 -0
- package/static/build/shared/fileAccess.js.map +1 -0
- package/static/build/shared/i18n.js +164 -85
- package/static/build/shared/i18n.js.map +1 -0
- package/static/build/shared/interface.js.map +1 -0
- package/static/build/shared/languageSync.js +61 -0
- package/static/build/shared/languageSync.js.map +1 -0
- package/static/build/shared/linuxMirror.js +96 -0
- package/static/build/shared/linuxMirror.js.map +1 -0
- package/static/build/shared/logPath.js.map +1 -0
- package/static/build/shared/logReader.js.map +1 -0
- package/static/build/shared/logStreamManager.js.map +1 -0
- package/static/build/shared/loginThrottle.js.map +1 -0
- package/static/build/shared/notificationAudit.js +46 -0
- package/static/build/shared/notificationAudit.js.map +1 -0
- package/static/build/shared/pLimit.js +8 -8
- package/static/build/shared/pLimit.js.map +1 -0
- package/static/build/shared/password.js.map +1 -0
- package/static/build/shared/retention.js.map +1 -0
- package/static/build/shared/runCron.js +69 -26
- package/static/build/shared/runCron.js.map +1 -0
- package/static/build/shared/runtimeBuild.js +44 -0
- package/static/build/shared/runtimeBuild.js.map +1 -0
- package/static/build/shared/schedulerMutationLock.js.map +1 -0
- package/static/build/shared/schedulerReadiness.js.map +1 -0
- package/static/build/shared/schemaMigrations.js.map +1 -0
- package/static/build/shared/scriptHistory.js.map +1 -0
- package/static/build/shared/shellQuote.js.map +1 -0
- package/static/build/shared/startupProcess.js.map +1 -0
- package/static/build/shared/store.js.map +1 -0
- package/static/build/shared/subscriptionMutationLock.js.map +1 -0
- package/static/build/shared/subscriptionPath.js.map +1 -0
- package/static/build/shared/subscriptionStorage.js.map +1 -0
- package/static/build/shared/trustProxy.js +5 -4
- package/static/build/shared/trustProxy.js.map +1 -0
- package/static/build/shared/utils.js.map +1 -0
- package/static/build/token.js.map +1 -0
- package/static/build/validation/schedule.js +19 -1
- package/static/build/validation/schedule.js.map +1 -0
- package/static/build-info.json +754 -0
- package/static/dist/1089.0ecc5383.async.js.gz +0 -0
- package/static/dist/1174.41a43fee.async.js.gz +0 -0
- package/static/dist/119.89e2d610.async.js.gz +0 -0
- package/static/dist/1212.f87fd07a.async.js.gz +0 -0
- package/static/dist/1352.96a77e1d.async.js.gz +0 -0
- package/static/dist/1379.f91563a1.async.js.gz +0 -0
- package/static/dist/1571.94ddca13.async.js.gz +0 -0
- package/static/dist/1706.ac98cb3f.async.js.gz +0 -0
- package/static/dist/1765.5ac01a93.async.js.gz +0 -0
- package/static/dist/1836.f0b74cf1.async.js.gz +0 -0
- package/static/dist/1883.675b6a18.chunk.css.gz +0 -0
- package/static/dist/1885.b8f427bf.async.js.gz +0 -0
- package/static/dist/1887.9e0d3da8.async.js.gz +0 -0
- package/static/dist/1967.3f3945d0.async.js.gz +0 -0
- package/static/dist/198.db47fc1a.async.js.gz +0 -0
- package/static/dist/2325.dfa32834.async.js.gz +0 -0
- package/static/dist/2338.d678967d.async.js.gz +0 -0
- package/static/dist/2372.b5a50ee7.async.js +1 -0
- package/static/dist/2372.b5a50ee7.async.js.gz +0 -0
- package/static/dist/2476.4e9b0992.async.js.gz +0 -0
- package/static/dist/2537.2b262ee0.async.js.gz +0 -0
- package/static/dist/2577.aa8fe709.async.js.gz +0 -0
- package/static/dist/2635.d4c59d23.async.js.gz +0 -0
- package/static/dist/2664.e69530fb.async.js +1 -0
- package/static/dist/2664.e69530fb.async.js.gz +0 -0
- package/static/dist/2693.51c2636b.async.js.gz +0 -0
- package/static/dist/2808.cdc0995c.async.js.gz +0 -0
- package/static/dist/2821.651f31e5.async.js.gz +0 -0
- package/static/dist/2890.add55e85.async.js.gz +0 -0
- package/static/dist/2901.6d0de54e.async.js +1 -0
- package/static/dist/2901.6d0de54e.async.js.gz +0 -0
- package/static/dist/292.1b962b29.chunk.css.gz +0 -0
- package/static/dist/292.27ce781f.async.js +1 -0
- package/static/dist/292.27ce781f.async.js.gz +0 -0
- package/static/dist/300.08ac9875.async.js.gz +0 -0
- package/static/dist/3191.3b7e4b42.async.js +1 -0
- package/static/dist/3191.3b7e4b42.async.js.gz +0 -0
- package/static/dist/3382.a584a111.async.js.gz +0 -0
- package/static/dist/3383.041eee73.async.js.gz +0 -0
- package/static/dist/3512.95e41255.async.js.gz +0 -0
- package/static/dist/3714.8d6dba9e.async.js.gz +0 -0
- package/static/dist/3906.a5eee612.async.js.gz +0 -0
- package/static/dist/3948.4fe809fd.async.js.gz +0 -0
- package/static/dist/4324.5a5887d1.async.js.gz +0 -0
- package/static/dist/4559.faab3673.async.js.gz +0 -0
- package/static/dist/4573.16f19278.async.js.gz +0 -0
- package/static/dist/{4736.1d2b5cb6.async.js → 4736.7c4c489b.async.js} +1 -1
- package/static/dist/4736.7c4c489b.async.js.gz +0 -0
- package/static/dist/4887.8e3ae573.async.js.gz +0 -0
- package/static/dist/4934.f3539d08.async.js.gz +0 -0
- package/static/dist/5077.cbd111cd.async.js.gz +0 -0
- package/static/dist/{5481.624d0e07.async.js → 5481.e2945a63.async.js} +1 -1
- package/static/dist/5481.e2945a63.async.js.gz +0 -0
- package/static/dist/5662.678b0cfb.async.js.gz +0 -0
- package/static/dist/5970.5862e59e.async.js +1 -0
- package/static/dist/5970.5862e59e.async.js.gz +0 -0
- package/static/dist/6013.db535339.async.js.gz +0 -0
- package/static/dist/6035.32ebfad9.async.js.gz +0 -0
- package/static/dist/6212.30a9c190.async.js +1 -0
- package/static/dist/6212.30a9c190.async.js.gz +0 -0
- package/static/dist/6341.673fb65c.async.js.gz +0 -0
- package/static/dist/6367.8b0e838c.async.js.gz +0 -0
- package/static/dist/6431.c50479be.async.js +1 -0
- package/static/dist/6569.55177f6a.async.js.gz +0 -0
- package/static/dist/6610.c111af7e.async.js.gz +0 -0
- package/static/dist/6638.87a163d2.async.js.gz +0 -0
- package/static/dist/6646.95e92533.async.js.gz +0 -0
- package/static/dist/{6872.a503ef55.async.js → 6872.fcc9ce17.async.js} +1 -1
- package/static/dist/6872.fcc9ce17.async.js.gz +0 -0
- package/static/dist/691.187a388c.async.js.gz +0 -0
- package/static/dist/7146.4dc150b1.async.js +1 -0
- package/static/dist/7146.4dc150b1.async.js.gz +0 -0
- package/static/dist/7231.f7e5b668.async.js.gz +0 -0
- package/static/dist/7253.4b9bf133.async.js.gz +0 -0
- package/static/dist/7278.96bf439f.async.js.gz +0 -0
- package/static/dist/7355.fca746f5.async.js.gz +0 -0
- package/static/dist/7384.1bb449d5.async.js.gz +0 -0
- package/static/dist/7508.3fffed15.chunk.css.gz +0 -0
- package/static/dist/7508.d90eac63.async.js.gz +0 -0
- package/static/dist/7802.34255805.async.js.gz +0 -0
- package/static/dist/7984.eaac7402.async.js.gz +0 -0
- package/static/dist/8033.5cb31493.async.js.gz +0 -0
- package/static/dist/8078.8586c875.async.js.gz +0 -0
- package/static/dist/8147.2fb55202.async.js.gz +0 -0
- package/static/dist/8187.48c130d6.async.js.gz +0 -0
- package/static/dist/8495.d53e15ca.async.js.gz +0 -0
- package/static/dist/8844.a0fef08e.async.js.gz +0 -0
- package/static/dist/9308.3202ac13.async.js.gz +0 -0
- package/static/dist/9323.a33f47da.async.js.gz +0 -0
- package/static/dist/965.8d9b1fbd.async.js +1 -0
- package/static/dist/965.8d9b1fbd.async.js.gz +0 -0
- package/static/dist/9761.360a19d8.async.js.gz +0 -0
- package/static/dist/index.html +2 -2
- package/static/dist/layouts__index.86b6bcbe.chunk.css +1 -0
- package/static/dist/layouts__index.86b6bcbe.chunk.css.gz +0 -0
- package/static/dist/layouts__index.c8e9788e.async.js +1 -0
- package/static/dist/layouts__index.c8e9788e.async.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/base/worker/workerMain.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/abap/abap.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/clojure/clojure.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/elixir/elixir.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/freemarker2/freemarker2.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/mysql/mysql.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/pgsql/pgsql.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/powerquery/powerquery.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/redshift/redshift.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/solidity/solidity.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/basic-languages/sql/sql.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.css.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.de.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.es.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.fr.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.it.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.ja.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.ko.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.ru.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.zh-cn.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/editor/editor.main.nls.zh-tw.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/css/cssMode.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/css/cssWorker.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/html/htmlMode.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/html/htmlWorker.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/json/jsonMode.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/json/jsonWorker.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/typescript/tsMode.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/language/typescript/tsWorker.js.gz +0 -0
- package/static/dist/monaco-editor/min/vs/loader.js.gz +0 -0
- package/static/dist/preload_helper.8b8f6581.js +1 -0
- package/static/dist/src__pages__404.3fd8332e.async.js +1 -0
- package/static/dist/src__pages__config__index.d18d8f95.async.js +1 -0
- package/static/dist/src__pages__crontab__detail.88729e8f.async.js +1 -0
- package/static/dist/src__pages__crontab__detail.88729e8f.async.js.gz +0 -0
- package/static/dist/src__pages__crontab__index.8aa9d297.async.js +1 -0
- package/static/dist/src__pages__crontab__index.8aa9d297.async.js.gz +0 -0
- package/static/dist/src__pages__crontab__logModal.930535e2.async.js.gz +0 -0
- package/static/dist/src__pages__crontab__modal.a2c8fdcc.async.js.gz +0 -0
- package/static/dist/src__pages__crontab__viewCreateModal.7b4f9cbe.async.js.gz +0 -0
- package/static/dist/src__pages__crontab__viewManageModal.cd454ea0.async.js.gz +0 -0
- package/static/dist/src__pages__dashboard__index.c05ce904.async.js +1 -0
- package/static/dist/src__pages__dashboard__index.c05ce904.async.js.gz +0 -0
- package/static/dist/src__pages__dependence__index.5b7fd97d.async.js +1 -0
- package/static/dist/src__pages__dependence__index.5b7fd97d.async.js.gz +0 -0
- package/static/dist/{src__pages__dependence__logModal.154efe7a.async.js → src__pages__dependence__logModal.01729f63.async.js} +1 -1
- package/static/dist/src__pages__dependence__logModal.01729f63.async.js.gz +0 -0
- package/static/dist/src__pages__dependence__modal.ef7ae53b.async.js +1 -0
- package/static/dist/src__pages__dependence__modal.ef7ae53b.async.js.gz +0 -0
- package/static/dist/src__pages__diff__index.4233ea93.async.js +1 -0
- package/static/dist/src__pages__diff__index.4233ea93.async.js.gz +0 -0
- package/static/dist/src__pages__env__index.eddb35bf.async.js +1 -0
- package/static/dist/src__pages__env__index.eddb35bf.async.js.gz +0 -0
- package/static/dist/src__pages__env__modal.4d71adb3.async.js.gz +0 -0
- package/static/dist/src__pages__error__index.66605c72.async.js +1 -0
- package/static/dist/src__pages__initialization__index.9c1c5b76.async.js +1 -0
- package/static/dist/src__pages__initialization__index.9c1c5b76.async.js.gz +0 -0
- package/static/dist/src__pages__log__index.71250e0d.async.js.gz +0 -0
- package/static/dist/src__pages__login__index.58bb4b38.async.js +1 -0
- package/static/dist/src__pages__login__index.58bb4b38.async.js.gz +0 -0
- package/static/dist/src__pages__script__components__UnsupportedFilePreview__index.c347a13a.async.js.gz +0 -0
- package/static/dist/src__pages__script__editModal.d15f8d78.async.js +1 -0
- package/static/dist/src__pages__script__editModal.d15f8d78.async.js.gz +0 -0
- package/static/dist/src__pages__script__editNameModal.789ad87b.async.js.gz +0 -0
- package/static/dist/src__pages__script__historyDrawer.8c58d958.async.js.gz +0 -0
- package/static/dist/src__pages__script__index.96a6d30f.async.js +1 -0
- package/static/dist/src__pages__script__index.96a6d30f.async.js.gz +0 -0
- package/static/dist/{src__pages__setting__about.e6db5090.chunk.css → src__pages__setting__about.0d6ea255.chunk.css} +1 -1
- package/static/dist/src__pages__setting__about.3d3c019f.async.js.gz +0 -0
- package/static/dist/src__pages__setting__checkUpdate.429a42f3.async.js +1 -0
- package/static/dist/src__pages__setting__checkUpdate.429a42f3.async.js.gz +0 -0
- package/static/dist/src__pages__setting__clientIp.3a8711ed.async.js.gz +0 -0
- package/static/dist/{src__pages__setting__dependence.28ecea01.chunk.css → src__pages__setting__dependence.80b183a5.chunk.css} +1 -1
- package/static/dist/src__pages__setting__dependence.c227c0f5.async.js +1 -0
- package/static/dist/src__pages__setting__dependence.c227c0f5.async.js.gz +0 -0
- package/static/dist/src__pages__setting__index.274ad415.async.js +1 -0
- package/static/dist/src__pages__setting__index.274ad415.async.js.gz +0 -0
- package/static/dist/{src__pages__setting__index.7cf46d4a.chunk.css → src__pages__setting__index.46315660.chunk.css} +1 -1
- package/static/dist/src__pages__setting__loginLog.ef135f19.async.js +1 -0
- package/static/dist/src__pages__setting__loginLog.ef135f19.async.js.gz +0 -0
- package/static/dist/src__pages__setting__notifyLog.5ef5b578.async.js +1 -0
- package/static/dist/src__pages__setting__notifyLog.5ef5b578.async.js.gz +0 -0
- package/static/dist/{src__pages__setting__other.28ecea01.chunk.css → src__pages__setting__notifyLog.80b183a5.chunk.css} +1 -1
- package/static/dist/src__pages__setting__other.80b183a5.chunk.css +1 -0
- package/static/dist/src__pages__setting__other.e744c0d1.async.js +1 -0
- package/static/dist/src__pages__setting__other.e744c0d1.async.js.gz +0 -0
- package/static/dist/src__pages__setting__security.e2d71ebb.async.js.gz +0 -0
- package/static/dist/src__pages__setting__systemLog.000bcb5e.async.js +1 -0
- package/static/dist/src__pages__setting__systemLog.000bcb5e.async.js.gz +0 -0
- package/static/dist/src__pages__subscription__index.f556ae4c.async.js +1 -0
- package/static/dist/src__pages__subscription__index.f556ae4c.async.js.gz +0 -0
- package/static/dist/src__pages__subscription__logModal.cdba5139.async.js.gz +0 -0
- package/static/dist/src__pages__subscription__modal.8f04f506.async.js +1 -0
- package/static/dist/umi.73936e34.js +1 -0
- package/static/dist/umi.73936e34.js.gz +0 -0
- package/static/dist/umi.a4d14b92.css.gz +0 -0
- package/version.yaml +11 -14
- package/.dockerignore +0 -13
- package/AGENTS.md +0 -43
- package/SECURITY.md +0 -5
- package/back/protos/cron.proto +0 -33
- package/back/protos/health.proto +0 -22
- package/deploy/kubernetes/README.md +0 -81
- package/deploy/kubernetes/base/kustomization.yaml +0 -5
- package/deploy/kubernetes/base/qinglong.yaml +0 -95
- package/deploy/kubernetes/overlays/example/kustomization.yaml +0 -10
- package/docker/Dockerfile +0 -113
- package/docker/Dockerfile.310 +0 -113
- package/docker/Dockerfile.debian +0 -128
- package/docker/Dockerfile.debian310 +0 -130
- package/docker/build-manifest.cjs +0 -28
- package/docker/docker-compose.yml +0 -10
- package/docker/docker-entrypoint.sh +0 -147
- package/docker/verify-build.cjs +0 -49
- package/docs/PROJECT_ARCHITECTURE.md +0 -550
- package/docs/development/node-cron-migration.md +0 -49
- package/docs/development/task-startup.md +0 -78
- package/docs/releases/2.22.0-validation.md +0 -49
- package/docs/releases/2.22.0.md +0 -62
- package/docs/releases/2.23.0.md +0 -33
- package/docs/script-history.md +0 -53
- package/sample/tool.ts +0 -40
- package/scripts/benchmark-execution.cjs +0 -96
- package/scripts/benchmark-script-history.cjs +0 -39
- package/scripts/publish-static.sh +0 -34
- package/scripts/sync-static.sh +0 -20
- package/scripts/wait-for-mirror.sh +0 -214
- package/scripts/write-build-info.cjs +0 -27
- package/shell/pub.sh +0 -28
- package/static/dist/255.8a80b983.async.js +0 -1
- package/static/dist/2901.2ca95295.async.js +0 -1
- package/static/dist/292.264757f0.async.js +0 -1
- package/static/dist/3600.7637c822.async.js +0 -1
- package/static/dist/445.a65ff63b.async.js +0 -1
- package/static/dist/5970.d3a6e7bd.async.js +0 -1
- package/static/dist/6212.9e6d9913.async.js +0 -1
- package/static/dist/6431.4603ad0e.async.js +0 -1
- package/static/dist/9066.605168f8.async.js +0 -1
- package/static/dist/9313.37acaf13.async.js +0 -1
- package/static/dist/layouts__index.633d3553.async.js +0 -1
- package/static/dist/layouts__index.adf0692f.chunk.css +0 -1
- package/static/dist/preload_helper.01fcd534.js +0 -1
- package/static/dist/src__pages__404.771168fc.async.js +0 -1
- package/static/dist/src__pages__config__index.9aba4054.async.js +0 -1
- package/static/dist/src__pages__crontab__detail.86b2eebb.async.js +0 -1
- package/static/dist/src__pages__crontab__index.ae4e06f2.async.js +0 -1
- package/static/dist/src__pages__dashboard__index.243c5a35.async.js +0 -1
- package/static/dist/src__pages__dependence__index.874d501f.async.js +0 -1
- package/static/dist/src__pages__dependence__modal.0fa8b421.async.js +0 -1
- package/static/dist/src__pages__diff__index.b94e5dc5.async.js +0 -1
- package/static/dist/src__pages__env__index.fd6fd2b0.async.js +0 -1
- package/static/dist/src__pages__error__index.aae50c94.async.js +0 -1
- package/static/dist/src__pages__initialization__index.82a2e967.async.js +0 -1
- package/static/dist/src__pages__login__index.a0fd5ed8.async.js +0 -1
- package/static/dist/src__pages__script__editModal.afabf073.async.js +0 -1
- package/static/dist/src__pages__script__index.fc575945.async.js +0 -1
- package/static/dist/src__pages__setting__checkUpdate.d175b154.async.js +0 -1
- package/static/dist/src__pages__setting__dependence.9c0f749b.async.js +0 -1
- package/static/dist/src__pages__setting__index.cb397741.async.js +0 -1
- package/static/dist/src__pages__setting__loginLog.e0a1f54d.async.js +0 -1
- package/static/dist/src__pages__setting__other.3d0b8492.async.js +0 -1
- package/static/dist/src__pages__setting__systemLog.b3046955.async.js +0 -1
- package/static/dist/src__pages__subscription__index.43086a06.async.js +0 -1
- package/static/dist/src__pages__subscription__modal.30868ba8.async.js +0 -1
- package/static/dist/umi.3a24a9fa.js +0 -1
- package/test/back/advisory-input-security.test.cjs +0 -416
- package/test/back/auth-security.test.cjs +0 -74
- package/test/back/build-provenance.test.cjs +0 -150
- package/test/back/code-scanning-security.test.cjs +0 -189
- package/test/back/cron-log-name.test.cjs +0 -110
- package/test/back/cron-macros.test.cjs +0 -51
- package/test/back/cron-schedule-compatibility.test.cjs +0 -69
- package/test/back/cron-scheduler-routing.test.cjs +0 -59
- package/test/back/cron-validation.test.cjs +0 -45
- package/test/back/dashboard-failures.test.cjs +0 -173
- package/test/back/database-bootstrap.test.cjs +0 -193
- package/test/back/dependence-cache-status.test.cjs +0 -125
- package/test/back/deprecated-file-routes.test.cjs +0 -82
- package/test/back/draft-path-security.test.cjs +0 -235
- package/test/back/ecosystem.test.cjs +0 -28
- package/test/back/env-import-security.test.cjs +0 -91
- package/test/back/env-name-parsing.test.cjs +0 -96
- package/test/back/execution-lifecycle.test.cjs +0 -236
- package/test/back/file-access-scope.test.cjs +0 -180
- package/test/back/file-access-security.test.cjs +0 -47
- package/test/back/fileTreeListing.test.cjs +0 -57
- package/test/back/grpc-cron-response.test.cjs +0 -60
- package/test/back/grpc-mtls-security.test.cjs +0 -136
- package/test/back/http-exclusive-listen.test.cjs +0 -31
- package/test/back/http-security.test.cjs +0 -313
- package/test/back/legacy-cron-recovery.test.cjs +0 -76
- package/test/back/linux-mirror-result.test.cjs +0 -176
- package/test/back/listen-security.test.cjs +0 -68
- package/test/back/log-path-security.test.cjs +0 -158
- package/test/back/logReader.test.cjs +0 -72
- package/test/back/manual-execution.test.cjs +0 -85
- package/test/back/manual-stop-claim.test.cjs +0 -220
- package/test/back/metrics.test.cjs +0 -34
- package/test/back/mirror-status.test.cjs +0 -257
- package/test/back/monitoring.test.cjs +0 -73
- package/test/back/node-cron-migration.test.cjs +0 -65
- package/test/back/node-path-cache.test.cjs +0 -202
- package/test/back/node-path-lock.test.cjs +0 -182
- package/test/back/npm-publication.test.cjs +0 -70
- package/test/back/preload-lazy-notify.test.cjs +0 -168
- package/test/back/primary-apm.test.cjs +0 -24
- package/test/back/process-exit-state.test.cjs +0 -81
- package/test/back/process-stop-signal.test.cjs +0 -77
- package/test/back/protected-path-case.test.cjs +0 -58
- package/test/back/qlServiceLogCommand.test.cjs +0 -128
- package/test/back/queued-cron-invalidation.test.cjs +0 -98
- package/test/back/restart-instance-recovery.test.cjs +0 -116
- package/test/back/retention.test.cjs +0 -131
- package/test/back/role-loading.test.cjs +0 -118
- package/test/back/schedule-health.test.cjs +0 -86
- package/test/back/scheduler-bulk-recovery.test.cjs +0 -40
- package/test/back/scheduler-concurrency.test.cjs +0 -411
- package/test/back/scheduler-file-lock.test.cjs +0 -51
- package/test/back/scheduler-mutation.test.cjs +0 -312
- package/test/back/scheduler-readiness.test.cjs +0 -85
- package/test/back/scheduler-reconciliation.test.cjs +0 -206
- package/test/back/scheduler-rpc-timeout.test.cjs +0 -49
- package/test/back/schema-migrations.test.cjs +0 -127
- package/test/back/script-file-access.test.cjs +0 -210
- package/test/back/script-history-api.test.cjs +0 -551
- package/test/back/script-history.test.cjs +0 -383
- package/test/back/shell-api-parsing.test.cjs +0 -184
- package/test/back/shell-translation-output.test.cjs +0 -16
- package/test/back/shell-upgrade.test.cjs +0 -312
- package/test/back/shellApiToken.test.cjs +0 -151
- package/test/back/sock-polling.test.cjs +0 -297
- package/test/back/sock-security.test.cjs +0 -72
- package/test/back/ssh-config-home.test.cjs +0 -113
- package/test/back/start-env-preservation.test.cjs +0 -53
- package/test/back/static-mirror-trigger.test.cjs +0 -441
- package/test/back/static-mirror.test.cjs +0 -179
- package/test/back/stop-failure-feedback.test.cjs +0 -158
- package/test/back/stop-race.test.cjs +0 -171
- package/test/back/subscription-cleanup.test.cjs +0 -53
- package/test/back/subscription-mutation-lock.test.cjs +0 -83
- package/test/back/subscription-review-regression.test.cjs +0 -607
- package/test/back/subscription-stop-state.test.cjs +0 -66
- package/test/back/subscription-storage-regression.test.cjs +0 -553
- package/test/back/system-dependence-cache.test.cjs +0 -127
- package/test/back/system-export-history.test.cjs +0 -119
- package/test/back/systemTokenRenewal.test.cjs +0 -497
- package/test/back/task-shell-lifecycle.test.cjs +0 -194
- package/test/back/task-time.test.cjs +0 -116
- package/test/back/unique-constraint-error.test.cjs +0 -72
- package/test/back/upgrade-guards.test.cjs +0 -285
- package/test/back/upgrade-lifecycle.test.cjs +0 -288
- package/test/back/upgrade-transaction.test.cjs +0 -133
- package/test/back/user-api.test.cjs +0 -99
- package/test/back/user-security.test.cjs +0 -349
- package/test/back/worker-apm.test.cjs +0 -84
- package/test/back/wpush-grpc.test.cjs +0 -116
- package/test/fixtures/legacy-cron.json +0 -1371
- package/test/front/cron-log-pagination.test.cjs +0 -214
- package/test/front/diff-file-routing.test.cjs +0 -126
- package/test/front/http-auth.test.cjs +0 -152
- package/test/front/http-error.test.cjs +0 -29
- package/test/front/script-history-save.test.cjs +0 -121
- package/test/helpers/load-security-module.cjs +0 -42
- package/test/helpers/upgrade-fixture.cjs +0 -30
package/docker/Dockerfile.debian
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Node 20 Bookworm is the latest official Node image variant that covers the
|
|
2
|
-
# full Debian build matrix, including arm/v7, ppc64le, and s390x.
|
|
3
|
-
FROM node:20-bookworm-slim AS nodebuilder
|
|
4
|
-
|
|
5
|
-
FROM python:3.11.14-slim-bookworm AS builder
|
|
6
|
-
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
|
7
|
-
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
|
8
|
-
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
|
9
|
-
RUN set -x && \
|
|
10
|
-
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
|
|
11
|
-
apt-get update && \
|
|
12
|
-
apt-get install --no-install-recommends -y libatomic1 && \
|
|
13
|
-
npm i -g pnpm@8.3.1 && \
|
|
14
|
-
cd /tmp/build && \
|
|
15
|
-
pnpm install --prod --frozen-lockfile
|
|
16
|
-
|
|
17
|
-
FROM python:3.11.14-slim-bookworm
|
|
18
|
-
|
|
19
|
-
ARG QL_MAINTAINER="whyour"
|
|
20
|
-
LABEL maintainer="${QL_MAINTAINER}"
|
|
21
|
-
ARG QL_URL=https://github.com/${QL_MAINTAINER}/qinglong.git
|
|
22
|
-
ARG QL_BRANCH=develop
|
|
23
|
-
ARG PYTHON_SHORT_VERSION=3.11
|
|
24
|
-
|
|
25
|
-
ENV QL_DIR=/ql \
|
|
26
|
-
QL_BRANCH=${QL_BRANCH} \
|
|
27
|
-
QL_CONTAINER=true \
|
|
28
|
-
LANG=C.UTF-8 \
|
|
29
|
-
SHELL=/bin/bash \
|
|
30
|
-
PS1="\u@\h:\w \$ "
|
|
31
|
-
|
|
32
|
-
ARG QL_UID=5432
|
|
33
|
-
ARG QL_GID=5432
|
|
34
|
-
RUN groupadd -g ${QL_GID} qinglong && \
|
|
35
|
-
useradd -m -u ${QL_UID} -g ${QL_GID} -s /bin/bash qinglong && \
|
|
36
|
-
mkdir -p /home/qinglong/bin /home/qinglong/.ssh && \
|
|
37
|
-
chmod 700 /home/qinglong/.ssh && \
|
|
38
|
-
chown -R ${QL_UID}:${QL_GID} /home/qinglong && \
|
|
39
|
-
mkdir -p /etc/sudoers.d && \
|
|
40
|
-
echo 'qinglong ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/qinglong
|
|
41
|
-
|
|
42
|
-
ENV QL_USER=qinglong
|
|
43
|
-
ENV QL_HOME=/home/$QL_USER
|
|
44
|
-
|
|
45
|
-
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
|
46
|
-
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
|
47
|
-
|
|
48
|
-
RUN set -x && \
|
|
49
|
-
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
|
|
50
|
-
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx && \
|
|
51
|
-
apt-get update && \
|
|
52
|
-
apt-get upgrade -y && \
|
|
53
|
-
apt-get install --no-install-recommends -y git \
|
|
54
|
-
curl \
|
|
55
|
-
wget \
|
|
56
|
-
tzdata \
|
|
57
|
-
perl \
|
|
58
|
-
openssl \
|
|
59
|
-
openssh-client \
|
|
60
|
-
jq \
|
|
61
|
-
procps \
|
|
62
|
-
netcat-openbsd \
|
|
63
|
-
sudo \
|
|
64
|
-
unzip \
|
|
65
|
-
libatomic1 && \
|
|
66
|
-
apt-get clean && \
|
|
67
|
-
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
68
|
-
echo "Asia/Shanghai" >/etc/timezone && \
|
|
69
|
-
git config --global user.email "qinglong@users.noreply.github.com" && \
|
|
70
|
-
git config --global user.name "qinglong" && \
|
|
71
|
-
git config --global http.postBuffer 524288000 && \
|
|
72
|
-
npm install -g pnpm@8.3.1 pm2 ts-node typescript@5 && \
|
|
73
|
-
npm cache clean --force && \
|
|
74
|
-
rm -rf /root/.cache && \
|
|
75
|
-
rm -rf /root/.npm && \
|
|
76
|
-
rm -rf /var/lib/apt/lists/* && \
|
|
77
|
-
rm -rf /etc/apt/apt.conf.d/docker-clean && \
|
|
78
|
-
ulimit -c 0
|
|
79
|
-
|
|
80
|
-
RUN mkdir -p ${QL_DIR} && \
|
|
81
|
-
chown -R ${QL_UID}:${QL_GID} ${QL_DIR}
|
|
82
|
-
|
|
83
|
-
USER qinglong
|
|
84
|
-
ARG SOURCE_COMMIT
|
|
85
|
-
LABEL org.opencontainers.image.revision=${SOURCE_COMMIT}
|
|
86
|
-
RUN git clone --depth=1 -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
|
|
87
|
-
&& cd ${QL_DIR} \
|
|
88
|
-
&& if [ -n "${SOURCE_COMMIT}" ]; then git fetch --depth=1 origin "${SOURCE_COMMIT}" && git reset --hard FETCH_HEAD; fi \
|
|
89
|
-
&& cp -f .env.example .env \
|
|
90
|
-
&& chmod 777 ${QL_DIR}/shell/*.sh \
|
|
91
|
-
&& chmod 777 ${QL_DIR}/docker/*.sh
|
|
92
|
-
|
|
93
|
-
# Downloaded by CI from the build-static job in this workflow run.
|
|
94
|
-
COPY --chown=qinglong:qinglong static/ /ql/static/
|
|
95
|
-
COPY docker/verify-build.cjs docker/build-manifest.cjs /tmp/
|
|
96
|
-
COPY --from=builder /tmp/build/pnpm-lock.yaml /tmp/dependency-lock.yaml
|
|
97
|
-
RUN cd ${QL_DIR} && node /tmp/verify-build.cjs /tmp/dependency-lock.yaml
|
|
98
|
-
|
|
99
|
-
ENV PNPM_HOME=${QL_DIR}/data/dep_cache/node \
|
|
100
|
-
PYTHON_HOME=${QL_DIR}/data/dep_cache/python3 \
|
|
101
|
-
PYTHONUSERBASE=${QL_DIR}/data/dep_cache/python3 \
|
|
102
|
-
HOME=/home/qinglong
|
|
103
|
-
|
|
104
|
-
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PNPM_HOME}:${PYTHON_HOME}/bin:${HOME}/bin \
|
|
105
|
-
NODE_PATH=/usr/local/bin:/usr/local/lib/node_modules \
|
|
106
|
-
PIP_CACHE_DIR=${PYTHON_HOME}/pip \
|
|
107
|
-
PYTHONPATH=${PYTHON_HOME}:${PYTHON_HOME}/lib/python${PYTHON_SHORT_VERSION}:${PYTHON_HOME}/lib/python${PYTHON_SHORT_VERSION}/site-packages
|
|
108
|
-
|
|
109
|
-
RUN pip3 install --prefix ${PYTHON_HOME} requests
|
|
110
|
-
|
|
111
|
-
COPY --chown=qinglong:qinglong --from=builder /tmp/build/node_modules/. /ql/node_modules/
|
|
112
|
-
|
|
113
|
-
USER root
|
|
114
|
-
|
|
115
|
-
RUN ln -sf ${QL_DIR}/shell/task.sh /usr/local/bin/task \
|
|
116
|
-
&& ln -sf ${QL_DIR}/shell/update.sh /usr/local/bin/ql \
|
|
117
|
-
&& chmod +x /usr/local/bin/task /usr/local/bin/ql
|
|
118
|
-
|
|
119
|
-
WORKDIR ${QL_DIR}
|
|
120
|
-
|
|
121
|
-
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
|
122
|
-
CMD curl -sf --noproxy '*' http://localhost:${QlPort:-5700}/api/health || exit 1
|
|
123
|
-
|
|
124
|
-
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
|
125
|
-
|
|
126
|
-
VOLUME /ql/data
|
|
127
|
-
|
|
128
|
-
EXPOSE 5700
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# Node 20 Bookworm is the latest official Node image variant that covers the
|
|
2
|
-
# full Debian build matrix, including arm/v7, ppc64le, and s390x.
|
|
3
|
-
FROM node:20-bookworm-slim AS nodebuilder
|
|
4
|
-
|
|
5
|
-
# Keep the full release matrix, including s390x, on the same immutable base.
|
|
6
|
-
# The floating 3.10-slim-bookworm tag no longer includes s390x.
|
|
7
|
-
FROM python:3.10.19-slim-bookworm@sha256:23f63358922e79a794f71be8f3723c84e5ccca9638af3f74456dc73d6184499e AS builder
|
|
8
|
-
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
|
9
|
-
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
|
10
|
-
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
|
11
|
-
RUN set -x && \
|
|
12
|
-
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
|
|
13
|
-
apt-get update && \
|
|
14
|
-
apt-get install --no-install-recommends -y libatomic1 && \
|
|
15
|
-
npm i -g pnpm@8.3.1 && \
|
|
16
|
-
cd /tmp/build && \
|
|
17
|
-
pnpm install --prod --frozen-lockfile
|
|
18
|
-
|
|
19
|
-
FROM python:3.10.19-slim-bookworm@sha256:23f63358922e79a794f71be8f3723c84e5ccca9638af3f74456dc73d6184499e
|
|
20
|
-
|
|
21
|
-
ARG QL_MAINTAINER="whyour"
|
|
22
|
-
LABEL maintainer="${QL_MAINTAINER}"
|
|
23
|
-
ARG QL_URL=https://github.com/${QL_MAINTAINER}/qinglong.git
|
|
24
|
-
ARG QL_BRANCH=develop
|
|
25
|
-
ARG PYTHON_SHORT_VERSION=3.10
|
|
26
|
-
|
|
27
|
-
ENV QL_DIR=/ql \
|
|
28
|
-
QL_BRANCH=${QL_BRANCH} \
|
|
29
|
-
QL_CONTAINER=true \
|
|
30
|
-
LANG=C.UTF-8 \
|
|
31
|
-
SHELL=/bin/bash \
|
|
32
|
-
PS1="\u@\h:\w \$ "
|
|
33
|
-
|
|
34
|
-
ARG QL_UID=5432
|
|
35
|
-
ARG QL_GID=5432
|
|
36
|
-
RUN groupadd -g ${QL_GID} qinglong && \
|
|
37
|
-
useradd -m -u ${QL_UID} -g ${QL_GID} -s /bin/bash qinglong && \
|
|
38
|
-
mkdir -p /home/qinglong/bin /home/qinglong/.ssh && \
|
|
39
|
-
chmod 700 /home/qinglong/.ssh && \
|
|
40
|
-
chown -R ${QL_UID}:${QL_GID} /home/qinglong && \
|
|
41
|
-
mkdir -p /etc/sudoers.d && \
|
|
42
|
-
echo 'qinglong ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/qinglong
|
|
43
|
-
|
|
44
|
-
ENV QL_USER=qinglong
|
|
45
|
-
ENV QL_HOME=/home/$QL_USER
|
|
46
|
-
|
|
47
|
-
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
|
48
|
-
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
|
49
|
-
|
|
50
|
-
RUN set -x && \
|
|
51
|
-
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
|
|
52
|
-
apt-get update && \
|
|
53
|
-
apt-get upgrade -y && \
|
|
54
|
-
apt-get install --no-install-recommends -y git \
|
|
55
|
-
curl \
|
|
56
|
-
wget \
|
|
57
|
-
tzdata \
|
|
58
|
-
perl \
|
|
59
|
-
openssl \
|
|
60
|
-
openssh-client \
|
|
61
|
-
jq \
|
|
62
|
-
procps \
|
|
63
|
-
netcat-openbsd \
|
|
64
|
-
sudo \
|
|
65
|
-
unzip \
|
|
66
|
-
libatomic1 && \
|
|
67
|
-
apt-get clean && \
|
|
68
|
-
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
69
|
-
echo "Asia/Shanghai" >/etc/timezone && \
|
|
70
|
-
git config --global user.email "qinglong@users.noreply.github.com" && \
|
|
71
|
-
git config --global user.name "qinglong" && \
|
|
72
|
-
git config --global http.postBuffer 524288000 && \
|
|
73
|
-
npm install -g pnpm@8.3.1 pm2 ts-node typescript@5 && \
|
|
74
|
-
npm cache clean --force && \
|
|
75
|
-
rm -rf /root/.cache && \
|
|
76
|
-
rm -rf /root/.npm && \
|
|
77
|
-
rm -rf /var/lib/apt/lists/* && \
|
|
78
|
-
rm -rf /etc/apt/apt.conf.d/docker-clean && \
|
|
79
|
-
ulimit -c 0
|
|
80
|
-
|
|
81
|
-
RUN mkdir -p ${QL_DIR} && \
|
|
82
|
-
chown -R ${QL_UID}:${QL_GID} ${QL_DIR}
|
|
83
|
-
|
|
84
|
-
USER qinglong
|
|
85
|
-
|
|
86
|
-
ARG SOURCE_COMMIT
|
|
87
|
-
LABEL org.opencontainers.image.revision=${SOURCE_COMMIT}
|
|
88
|
-
RUN git clone --depth=1 -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
|
|
89
|
-
&& cd ${QL_DIR} \
|
|
90
|
-
&& if [ -n "${SOURCE_COMMIT}" ]; then git fetch --depth=1 origin "${SOURCE_COMMIT}" && git reset --hard FETCH_HEAD; fi \
|
|
91
|
-
&& cp -f .env.example .env \
|
|
92
|
-
&& chmod 777 ${QL_DIR}/shell/*.sh \
|
|
93
|
-
&& chmod 777 ${QL_DIR}/docker/*.sh
|
|
94
|
-
|
|
95
|
-
# Downloaded by CI from the build-static job in this workflow run.
|
|
96
|
-
COPY --chown=qinglong:qinglong static/ /ql/static/
|
|
97
|
-
COPY docker/verify-build.cjs docker/build-manifest.cjs /tmp/
|
|
98
|
-
COPY --from=builder /tmp/build/pnpm-lock.yaml /tmp/dependency-lock.yaml
|
|
99
|
-
RUN cd ${QL_DIR} && node /tmp/verify-build.cjs /tmp/dependency-lock.yaml
|
|
100
|
-
|
|
101
|
-
ENV PNPM_HOME=${QL_DIR}/data/dep_cache/node \
|
|
102
|
-
PYTHON_HOME=${QL_DIR}/data/dep_cache/python3 \
|
|
103
|
-
PYTHONUSERBASE=${QL_DIR}/data/dep_cache/python3 \
|
|
104
|
-
HOME=/home/qinglong
|
|
105
|
-
|
|
106
|
-
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PNPM_HOME}:${PYTHON_HOME}/bin:${HOME}/bin \
|
|
107
|
-
NODE_PATH=/usr/local/bin:/usr/local/lib/node_modules \
|
|
108
|
-
PIP_CACHE_DIR=${PYTHON_HOME}/pip \
|
|
109
|
-
PYTHONPATH=${PYTHON_HOME}:${PYTHON_HOME}/lib/python${PYTHON_SHORT_VERSION}:${PYTHON_HOME}/lib/python${PYTHON_SHORT_VERSION}/site-packages
|
|
110
|
-
|
|
111
|
-
RUN pip3 install --prefix ${PYTHON_HOME} requests
|
|
112
|
-
|
|
113
|
-
COPY --chown=qinglong:qinglong --from=builder /tmp/build/node_modules/. /ql/node_modules/
|
|
114
|
-
|
|
115
|
-
USER root
|
|
116
|
-
|
|
117
|
-
RUN ln -sf ${QL_DIR}/shell/task.sh /usr/local/bin/task \
|
|
118
|
-
&& ln -sf ${QL_DIR}/shell/update.sh /usr/local/bin/ql \
|
|
119
|
-
&& chmod +x /usr/local/bin/task /usr/local/bin/ql
|
|
120
|
-
|
|
121
|
-
WORKDIR ${QL_DIR}
|
|
122
|
-
|
|
123
|
-
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
|
124
|
-
CMD curl -sf --noproxy '*' http://localhost:${QlPort:-5700}/api/health || exit 1
|
|
125
|
-
|
|
126
|
-
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
|
127
|
-
|
|
128
|
-
VOLUME /ql/data
|
|
129
|
-
|
|
130
|
-
EXPOSE 5700
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const fs = require('node:fs');
|
|
2
|
-
const path = require('node:path');
|
|
3
|
-
const crypto = require('node:crypto');
|
|
4
|
-
|
|
5
|
-
// Include every artifact, including imported backend modules and frontend chunks.
|
|
6
|
-
function collectBuildFiles(root = 'static') {
|
|
7
|
-
const files = {};
|
|
8
|
-
function visit(relative) {
|
|
9
|
-
for (const name of fs.readdirSync(path.join(root, relative)).sort()) {
|
|
10
|
-
const entry = relative ? `${relative}/${name}` : name;
|
|
11
|
-
if (entry === 'build-info.json') continue;
|
|
12
|
-
const file = path.join(root, entry);
|
|
13
|
-
const stat = fs.lstatSync(file);
|
|
14
|
-
if (stat.isSymbolicLink())
|
|
15
|
-
throw new Error(`Build output symlink: ${entry}`);
|
|
16
|
-
if (stat.isDirectory()) visit(entry);
|
|
17
|
-
else if (stat.isFile()) {
|
|
18
|
-
files[entry] = crypto
|
|
19
|
-
.createHash('sha256')
|
|
20
|
-
.update(fs.readFileSync(file))
|
|
21
|
-
.digest('hex');
|
|
22
|
-
} else throw new Error(`Unsupported build output: ${entry}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
visit('');
|
|
26
|
-
return files;
|
|
27
|
-
}
|
|
28
|
-
module.exports = { collectBuildFiles };
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
dir_shell=/ql/shell
|
|
4
|
-
. $dir_shell/share.sh
|
|
5
|
-
|
|
6
|
-
export_ql_envs() {
|
|
7
|
-
export BACK_PORT="${ql_port}"
|
|
8
|
-
export GRPC_PORT="${ql_grpc_port}"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
log_with_style() {
|
|
12
|
-
local level="$1"
|
|
13
|
-
local message="$2"
|
|
14
|
-
local timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
|
15
|
-
printf "\n[%s] [%7s] %s\n" "${timestamp}" "${level}" "${message}"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
# ============================================
|
|
19
|
-
# 确保当前用户对 /ql 和 /ql/data 目录有写入权限
|
|
20
|
-
# /ql/data 是 Docker Volume 挂载点,权限可能与 /ql 不同,需单独检测
|
|
21
|
-
# ============================================
|
|
22
|
-
ensure_ql_permissions() {
|
|
23
|
-
local current_uid
|
|
24
|
-
local current_gid
|
|
25
|
-
current_uid=$(id -u)
|
|
26
|
-
current_gid=$(id -g)
|
|
27
|
-
|
|
28
|
-
if [ "$current_uid" -eq 0 ]; then
|
|
29
|
-
return 0
|
|
30
|
-
fi
|
|
31
|
-
|
|
32
|
-
# ---- 检查 /ql 目录 ----
|
|
33
|
-
if ! mkdir -p "$QL_DIR/.tmp" 2>/dev/null; then
|
|
34
|
-
if chown -R "$current_uid:$current_gid" "$QL_DIR" 2>/dev/null; then
|
|
35
|
-
log_with_style "INFO" "已修正 /ql 目录权限: UID=$current_uid GID=$current_gid"
|
|
36
|
-
else
|
|
37
|
-
local ql_owner
|
|
38
|
-
ql_owner=$(stat -c '%u' "$QL_DIR" 2>/dev/null || stat -f '%u' "$QL_DIR" 2>/dev/null)
|
|
39
|
-
log_with_style "ERROR" "============================================="
|
|
40
|
-
log_with_style "ERROR" " 权限错误:无法写入 /ql 目录"
|
|
41
|
-
log_with_style "ERROR" " 当前用户 UID: $current_uid"
|
|
42
|
-
log_with_style "ERROR" " /ql 目录所有者 UID: ${ql_owner:-未知}"
|
|
43
|
-
log_with_style "ERROR" ""
|
|
44
|
-
log_with_style "ERROR" " 解决方案:"
|
|
45
|
-
log_with_style "ERROR" " 1. 使用镜像内置用户: docker run --user ${ql_owner:-5432}:${ql_owner:-5432} ..."
|
|
46
|
-
log_with_style "ERROR" " 2. 使用 root 运行: 移除 --user 参数"
|
|
47
|
-
log_with_style "ERROR" " 3. 修正宿主机数据目录: chown -R $current_uid:$current_gid /path/to/ql/data"
|
|
48
|
-
log_with_style "ERROR" "============================================="
|
|
49
|
-
exit 1
|
|
50
|
-
fi
|
|
51
|
-
fi
|
|
52
|
-
rmdir "$QL_DIR/.tmp" 2>/dev/null || true
|
|
53
|
-
|
|
54
|
-
# ---- 检查 /ql/data 目录(Volume 挂载点,不在用户数据卷内创建临时文件) ----
|
|
55
|
-
if [ ! -w "$QL_DIR/data" ] || [ ! -x "$QL_DIR/data" ]; then
|
|
56
|
-
if chown "$current_uid:$current_gid" "$QL_DIR/data" 2>/dev/null; then
|
|
57
|
-
log_with_style "INFO" "已修正 /ql/data 目录权限: UID=$current_uid GID=$current_gid"
|
|
58
|
-
if [ ! -w "$QL_DIR/data" ] || [ ! -x "$QL_DIR/data" ]; then
|
|
59
|
-
log_with_style "ERROR" "修正后仍无法写入 /ql/data,请检查挂载的数据卷权限"
|
|
60
|
-
log_with_style "ERROR" "确保宿主机目录: chown -R $current_uid:$current_gid /your/data"
|
|
61
|
-
exit 1
|
|
62
|
-
fi
|
|
63
|
-
else
|
|
64
|
-
local data_owner
|
|
65
|
-
data_owner=$(stat -c '%u' "$QL_DIR/data" 2>/dev/null || stat -f '%u' "$QL_DIR/data" 2>/dev/null)
|
|
66
|
-
log_with_style "ERROR" "============================================="
|
|
67
|
-
log_with_style "ERROR" " 权限错误:无法写入 /ql/data (Volume 挂载点)"
|
|
68
|
-
log_with_style "ERROR" " 当前用户 UID: $current_uid"
|
|
69
|
-
log_with_style "ERROR" " /ql/data 所有者 UID: ${data_owner:-未知}"
|
|
70
|
-
log_with_style "ERROR" ""
|
|
71
|
-
log_with_style "ERROR" " 请修正宿主机数据目录权限:"
|
|
72
|
-
log_with_style "ERROR" " chown -R $current_uid:$current_gid /your/ql/data"
|
|
73
|
-
log_with_style "ERROR" "============================================="
|
|
74
|
-
exit 1
|
|
75
|
-
fi
|
|
76
|
-
fi
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
# Fix DNS resolution issues in Alpine Linux
|
|
80
|
-
if [ -f /etc/alpine-release ]; then
|
|
81
|
-
if ! grep -q "^options ndots:0" /etc/resolv.conf 2>/dev/null; then
|
|
82
|
-
echo "options ndots:0" >> /etc/resolv.conf
|
|
83
|
-
log_with_style "INFO" "🔧 0. 已配置 DNS 解析优化 (ndots:0)"
|
|
84
|
-
fi
|
|
85
|
-
fi
|
|
86
|
-
|
|
87
|
-
# 确保 /etc/hosts 包含 localhost 解析(应对精简镜像或仅 IPv4/IPv6 环境)
|
|
88
|
-
if ! grep -qE '^127\.0\.0\.1[[:space:]]+.*localhost' /etc/hosts 2>/dev/null; then
|
|
89
|
-
echo "127.0.0.1 localhost" >> /etc/hosts
|
|
90
|
-
log_with_style "INFO" "🔧 0. 已添加 IPv4 localhost 解析"
|
|
91
|
-
fi
|
|
92
|
-
if ! grep -qE '^::1[[:space:]]+.*localhost' /etc/hosts 2>/dev/null; then
|
|
93
|
-
echo "::1 localhost ip6-localhost ip6-loopback" >> /etc/hosts
|
|
94
|
-
log_with_style "INFO" "🔧 0. 已添加 IPv6 localhost 解析"
|
|
95
|
-
fi
|
|
96
|
-
|
|
97
|
-
# 自定义用户(非 qinglong/root)可能 HOME 为空或不可写
|
|
98
|
-
# 修正 HOME 确保 npm/pip/pm2 等工具有可用的缓存目录
|
|
99
|
-
if [ ! -w "$HOME" ]; then
|
|
100
|
-
mkdir -p "$QL_DIR/.tmp"
|
|
101
|
-
export HOME="$QL_DIR/.tmp"
|
|
102
|
-
fi
|
|
103
|
-
|
|
104
|
-
# 在一切操作之前检查目录权限
|
|
105
|
-
ensure_ql_permissions
|
|
106
|
-
|
|
107
|
-
log_with_style "INFO" "🚀 1. 检测配置文件..."
|
|
108
|
-
load_ql_envs
|
|
109
|
-
export_ql_envs
|
|
110
|
-
. $dir_shell/env.sh
|
|
111
|
-
import_config "$@"
|
|
112
|
-
fix_config
|
|
113
|
-
|
|
114
|
-
# Try to initialize PM2, but don't fail if it doesn't work
|
|
115
|
-
pm2 l &>/dev/null || log_with_style "WARN" "PM2 初始化可能失败,将在启动时尝试使用备用方案"
|
|
116
|
-
|
|
117
|
-
log_with_style "INFO" "⚙️ 2. 启动 pm2 服务..."
|
|
118
|
-
reload_pm2
|
|
119
|
-
|
|
120
|
-
if [[ $AutoStartBot == true ]]; then
|
|
121
|
-
log_with_style "INFO" "🤖 3. 启动 bot..."
|
|
122
|
-
nohup ql bot >$dir_log/bot.log 2>&1 &
|
|
123
|
-
fi
|
|
124
|
-
|
|
125
|
-
if [[ $EnableExtraShell == true ]]; then
|
|
126
|
-
log_with_style "INFO" "🛠️ 4. 执行自定义脚本..."
|
|
127
|
-
nohup ql extra >$dir_log/extra.log 2>&1 &
|
|
128
|
-
fi
|
|
129
|
-
|
|
130
|
-
log_with_style "SUCCESS" "🎉 容器启动成功!"
|
|
131
|
-
|
|
132
|
-
# 自动检测调度模式:有 crond 二进制 → system 模式,否则 node 模式
|
|
133
|
-
if [ -z "$QL_SCHEDULER" ]; then
|
|
134
|
-
if command -v crond &>/dev/null; then
|
|
135
|
-
export QL_SCHEDULER="system"
|
|
136
|
-
else
|
|
137
|
-
export QL_SCHEDULER="node"
|
|
138
|
-
fi
|
|
139
|
-
fi
|
|
140
|
-
|
|
141
|
-
if [ "$QL_SCHEDULER" = "system" ]; then
|
|
142
|
-
crond -f > /dev/null
|
|
143
|
-
else
|
|
144
|
-
tail -f /dev/null
|
|
145
|
-
fi
|
|
146
|
-
|
|
147
|
-
exec "$@"
|
package/docker/verify-build.cjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const fs = require('node:fs');
|
|
2
|
-
const crypto = require('node:crypto');
|
|
3
|
-
const { execFileSync } = require('node:child_process');
|
|
4
|
-
const { collectBuildFiles } = require('./build-manifest.cjs');
|
|
5
|
-
|
|
6
|
-
const manifest = JSON.parse(fs.readFileSync('static/build-info.json', 'utf8'));
|
|
7
|
-
const sourceCommit = execFileSync('git', ['rev-parse', 'HEAD'], {
|
|
8
|
-
encoding: 'utf8',
|
|
9
|
-
}).trim();
|
|
10
|
-
const lockfileSha256 = crypto
|
|
11
|
-
.createHash('sha256')
|
|
12
|
-
.update(fs.readFileSync('pnpm-lock.yaml'))
|
|
13
|
-
.digest('hex');
|
|
14
|
-
if (
|
|
15
|
-
manifest.dirty !== false ||
|
|
16
|
-
manifest.sourceCommit !== sourceCommit ||
|
|
17
|
-
manifest.lockfileSha256 !== lockfileSha256
|
|
18
|
-
) {
|
|
19
|
-
throw new Error(
|
|
20
|
-
'Build artifacts do not match the checked-out source and lockfile. Rebuild from the same clean commit.',
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (process.argv[2]) {
|
|
25
|
-
const dependencyLock = crypto
|
|
26
|
-
.createHash('sha256')
|
|
27
|
-
.update(fs.readFileSync(process.argv[2]))
|
|
28
|
-
.digest('hex');
|
|
29
|
-
if (dependencyLock !== manifest.lockfileSha256)
|
|
30
|
-
throw new Error(
|
|
31
|
-
'Production dependencies were built from a different lockfile.',
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const actual = collectBuildFiles();
|
|
36
|
-
if (
|
|
37
|
-
manifest.version !== 1 ||
|
|
38
|
-
!manifest.files ||
|
|
39
|
-
JSON.stringify(Object.keys(actual).sort()) !==
|
|
40
|
-
JSON.stringify(Object.keys(manifest.files).sort())
|
|
41
|
-
)
|
|
42
|
-
throw new Error(
|
|
43
|
-
'Build output file set mismatch. Rebuild the complete artifacts.',
|
|
44
|
-
);
|
|
45
|
-
for (const [file, hash] of Object.entries(actual)) {
|
|
46
|
-
if (hash !== manifest.files[file])
|
|
47
|
-
throw new Error(`Build output checksum mismatch: ${file}`);
|
|
48
|
-
}
|
|
49
|
-
console.log(`Verified build artifacts for ${sourceCommit}`);
|