Add service discovery script to jobs, extend nginx and host directory support. Update environment variables, configs, and examples.
images / check (push) Successful in 50s
images / sandbox (push) Failing after 6s
images / spawner (push) Failing after 5s
images / backend (push) Failing after 5s
images / jobs (push) Failing after 5s

This commit is contained in:
Overlord committed 2026-10-13 16:47:36 +02:00
1 parent 5305687f98
commit 3aecb3a631
6 files changed
+151 -15

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ export type JobsConfig = {
/** Directory of the job scripts; relative script paths start here. */
scriptsDir: string;
contentDir: string;
/** Read only view of /srv on the host. Watch paths are relative to it and must stay inside. */
/** Read only views of the host, /srv as srv and the nginx config as nginx. Watch paths are relative to it and must stay inside. */
hostDir: string;
/** Builtin jobs of the backend are triggered through files in this directory. */
triggerDir: string;
@@ -21,7 +21,7 @@ export function loadConfig(env: NodeJS.ProcessEnv): JobsConfig
jobsFile: env.JOBS_FILE ?? '/config/jobs.toml',
scriptsDir: env.SCRIPTS_DIR ?? '/jobs',
contentDir: env.CONTENT_DIR ?? '/content',
hostDir: env.HOST_DIR ?? '/host/srv',
hostDir: env.HOST_DIR ?? '/host',
triggerDir: env.TRIGGER_DIR ?? '/run/jobs/triggers',
controlSocket: env.CONTROL_SOCKET ?? '/run/jobs/control.sock',
killGraceMs: killGraceSeconds * 1000,