community.docker icon indicating copy to clipboard operation
community.docker copied to clipboard

Implement entrypoint for docker_swarm_service

Open pedroterzero opened this issue 1 year ago • 3 comments

SUMMARY

It would be good to be able to define the entrypoint for a service. Unless there's a reason why it shouldn't be possible, but then perhaps it would be good to document it.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

docker_swarm_service

ADDITIONAL INFORMATION

Allow to configure entrypoint for a service.

      community.docker.docker_swarm_service:
        image: "mongo:7.0"
        entrypoint: "docker-entrypoint.sh"
        # ...

pedroterzero avatar Aug 14 '24 16:08 pedroterzero

I think the only reason it hasn't been implemented yet is that so far nobody needed it enough to bother to implement it :)

felixfontein avatar Aug 14 '24 16:08 felixfontein

I think the only reason it hasn't been implemented yet is that so far nobody needed it enough to bother to implement it :)

Would you be interested in a PR? I might have a go at it.

pedroterzero avatar Aug 14 '24 21:08 pedroterzero

Sure, PRs are always welcome!

felixfontein avatar Aug 15 '24 10:08 felixfontein