feat(maintainer): add-runner.ps1 for a second, Docker-only runner #26

Merged
poli0981 merged 1 commits from feat/add-runner into main 2026-12-04 12:54:14 +00:00
Owner

D15 decided a second gitea-runner registration on the PC for the long
data jobs; this script sets it up. It finds the first runner through
its running gitea-runner process, else its scheduled task (the exe
itself or a .ps1 that starts it), and prints what it saw when it
cannot. It writes a config.yaml of its own (capacity 3 by
default, the ubuntu-* labels copied from the first runner, separate
cache and work folders, docker_host and network copied over, a per-job
container limit), registers it with a token it asks for and never
stores, and runs it at logon from a wrapper that waits for Docker
Desktop and restarts the daemon when it exits: the first runner's task
once started before Docker and stayed down. With PowerShell from the
Store, the task calls the stable WindowsApps alias, not the versioned
install path.

-SplitExistingRunner backs up the first runner's config.yaml, drops its
docker labels so it only takes windows-latest jobs, and restarts it.
Restarting either runner asks first, since it cuts a running job.
Running the script again changes capacity, labels or limits without
registering again. -DryRun shows every step.

The runbook lists the script, and D15 now says capacity 3 by default.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k

D15 decided a second gitea-runner registration on the PC for the long data jobs; this script sets it up. It finds the first runner through its running gitea-runner process, else its scheduled task (the exe itself or a .ps1 that starts it), and prints what it saw when it cannot. It writes a config.yaml of its own (capacity 3 by default, the ubuntu-* labels copied from the first runner, separate cache and work folders, docker_host and network copied over, a per-job container limit), registers it with a token it asks for and never stores, and runs it at logon from a wrapper that waits for Docker Desktop and restarts the daemon when it exits: the first runner's task once started before Docker and stayed down. With PowerShell from the Store, the task calls the stable WindowsApps alias, not the versioned install path. -SplitExistingRunner backs up the first runner's config.yaml, drops its docker labels so it only takes windows-latest jobs, and restarts it. Restarting either runner asks first, since it cuts a running job. Running the script again changes capacity, labels or limits without registering again. -DryRun shows every step. The runbook lists the script, and D15 now says capacity 3 by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k
poli0981 added 1 commit 2026-12-04 12:53:59 +00:00
feat(maintainer): add-runner.ps1 for a second, Docker-only runner
Ops lint / actionlint + Python (pull_request) Successful in 37s
e032513d26
D15 decided a second gitea-runner registration on the PC for the long
data jobs; this script sets it up. It finds the first runner through
its running gitea-runner process, else its scheduled task (the exe
itself or a .ps1 that starts it), and prints what it saw when it
cannot. It writes a config.yaml of its own (capacity 3 by
default, the ubuntu-* labels copied from the first runner, separate
cache and work folders, docker_host and network copied over, a per-job
container limit), registers it with a token it asks for and never
stores, and runs it at logon from a wrapper that waits for Docker
Desktop and restarts the daemon when it exits: the first runner's task
once started before Docker and stayed down. With PowerShell from the
Store, the task calls the stable WindowsApps alias, not the versioned
install path.

-SplitExistingRunner backs up the first runner's config.yaml, drops its
docker labels so it only takes windows-latest jobs, and restarts it.
Restarting either runner asks first, since it cuts a running job.
Running the script again changes capacity, labels or limits without
registering again. -DryRun shows every step.

The runbook lists the script, and D15 now says capacity 3 by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k
poli0981 merged commit 2c9b038e24 into main 2026-12-04 12:54:14 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poli0981/.github#26