You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bashecho"Running entrypoint $0"source /docker-entrypoint.sh
_main "$@"# custom stuff goes here
Restarting the stack results in the following error in the new entrypoint:
_main command not found
It looks like the source'ing is somehow ignored for my own entrypoint script.
Is there any draft how to properly do this? I think the last line in the original-entrypoint in this project already proposes a draft on how to use it, but for some reason the functions of this script are not sourced/imported in the custom entrypoint :-/
The text was updated successfully, but these errors were encountered:
Replacing entrypoint likely resets command too, so you need to also supply that for "$@" to work as expected
Just running _main is probably not going to do what you want as it ends in basically exec mysqld and so will never return to your script to run anything else.
I'm trying to override docker-entrypoint.sh to implement a feature being able to import sql-patches (not initdb).
my script looks like this and I'm overriding entrypoint in my docker-compose.yml
docker-compose.overrides.yml
/root/bin/custom-entrypoint.sh (inside container)
Restarting the stack results in the following error in the new entrypoint:
It looks like the source'ing is somehow ignored for my own entrypoint script.
Is there any draft how to properly do this? I think the last line in the original-entrypoint in this project already proposes a draft on how to use it, but for some reason the functions of this script are not sourced/imported in the custom entrypoint :-/
The text was updated successfully, but these errors were encountered: