You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add entrypoint override
* Add changelog entry
* Make entrypoint override a command
* Fix entrypoint args
* Add acceptance test
* Skip acceptance test on Windows
* Add better help description for entrypoint override
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ By following these guidelines, we can easily determine which changes should be i
10
10
11
11
## Edge
12
12
13
+
-[#174](https://github.com/circleci/runner-init/pull/174) Add support for a custom entrypoint override.
13
14
-[#224](https://github.com/circleci/runner-init/pull/224) Record and log timings in orchestrator init function.
14
15
-[#212](https://github.com/circleci/runner-init/pull/212) Fix child process cleanup on Windows using job objects. This ensures that child processes are destroyed when the parent process (task-agent) terminates.
15
16
-[#197](https://github.com/circleci/runner-init/pull/197) Fix `%PATH%` on Windows by using the OS-specific path list separator.
ShutdownDelay time.Duration`default:"0s" help:"Delay shutdown by this amount."`
32
34
}
@@ -36,6 +38,12 @@ type initCmd struct {
36
38
Destinationstring`arg:"" env:"DESTINATION" type:"path" default:"/opt/circleci/bin" help:"Path where to copy the agent binaries to."`
37
39
}
38
40
41
+
typeoverrideCmdstruct {
42
+
Entrypoint []string`help:"Custom init process to execute as PID 1, overriding orchestrator. Must accept and execute the orchestrator command/arguments (e.g., exec \"$@\"), propagate signals, and handle standard init responsibilities like reaping zombie processes."`
43
+
44
+
runTaskCmd
45
+
}
46
+
39
47
typerunTaskCmdstruct {
40
48
TerminationGracePeriod time.Duration`default:"10s" help:"How long the agent will wait for the task to complete if interrupted."`
41
49
HealthCheckAddrstring`default:":7623" help:"Address for the health check API to listen on."`
0 commit comments