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 <i@wolfogre.com> Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
35 KiB
35 KiB