mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-04 22:37:55 +00:00
The current code overrides the container's entrypoint with `sleep`. Unfortunately, that prevents initialization scripts, such as to initialize Docker-in-Docker, from running. The change simply moves the `sleep` to the command, rather than entrypoint, directive. For most containers of this sort, the entrypoint script performs initialization, and then ends with `$@` to execute whatever command is passed. If the container has no entrypoint, the command is executed directly. As a result, this should be a transparent change for most use cases, while allowing the container's entrypoint to be used when present. Reviewed-on: https://gitea.com/gitea/act/pulls/86 Reviewed-by: Jason Song <[email protected]> Co-authored-by: Thomas E Lackey <[email protected]> Co-committed-by: Thomas E Lackey <[email protected]>