docs/maintainers/handbook.md aktualisiert
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
clarification of necessity of `command:` in case of custom entrypoint (and where to find it)
This commit is contained in:
parent
28ab363163
commit
548e5211d7
@ -717,6 +717,11 @@ Please note:
|
|||||||
|
|
||||||
1. In order to pass execution back to the original entrypoint, it's a good idea to find the original entrypoint script and run it from your own entrypoint script. If there is none, you may want to reference the `CMD` definition or if that isn't working, try to actually specify `cmd: ...` in the `compose.yml` definition (there are other recipes which do this).
|
1. In order to pass execution back to the original entrypoint, it's a good idea to find the original entrypoint script and run it from your own entrypoint script. If there is none, you may want to reference the `CMD` definition or if that isn't working, try to actually specify `cmd: ...` in the `compose.yml` definition (there are other recipes which do this).
|
||||||
|
|
||||||
|
1. Also it might be necessary to define command: although there is an original entrypoint. That's [due to the fact](https://docs.docker.com/reference/compose-file/services/#entrypoint) that if entrypoint is non-null, Compose ignores any default command from the image, for example the `CMD` instruction in the Dockerfile.
|
||||||
|
|
||||||
|
1. Pratically you would e.g. look for the Dockerfile of the upstream image. In there you should find the docker-entrypoint.sh (or similar) and where it's located. Furthermore you find the `CMD`-line there.
|
||||||
|
1. Just put in your entrypoint.sh in the last line: exec /path/to/docker-entrypoint.sh "@" (path and filename you should find in upstream Dockerfile) and insert command: to your service in compose.yml with the value of what you find in the CMD line of the Dockerfile.
|
||||||
|
|
||||||
1. If you're feeling reckless, you can also use the Golang templating engine to do things conditionally.
|
1. If you're feeling reckless, you can also use the Golang templating engine to do things conditionally.
|
||||||
|
|
||||||
Then, wire up the vendored config version:
|
Then, wire up the vendored config version:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user