Skip to content

Conversation

@s4ichi
Copy link
Contributor

@s4ichi s4ichi commented Jun 20, 2023

related: #44

When using service container with container hooks for docker, is it possible to stop the overwriting of the entrypoint?

Currently, container hooks for docker does not allow the use of service container for some docker images.
This is because the setupContainer function sets tail as entryPoint field in any case.
This behavior prevents, for example, postgres or mysql cannot be started (by overriding their configured entrypoint).

setupContainer function:

container.entryPointArgs = [`-f`, `/dev/null`]
container.entryPoint = 'tail'

I think this is the same problem as #44. So, I tried to write a patch based on #45.

I didn't know why the entrypoint was overwritten initially, so if you have a workaround, I would appreciate it if you could let me know.

@s4ichi s4ichi requested review from a team as code owners June 20, 2023 08:56
Copy link
Collaborator

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nikola-jokic nikola-jokic merged commit 586a052 into actions:main Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants