potiuk commented on pull request #18915: URL: https://github.com/apache/airflow/pull/18915#issuecomment-943223383
> Our way around it: build an image with our `my_entrypoint.sh` as entrypoint, which will do all ENV settings, and then exec the base entrypoint passing on any argument. Good point. I added this option to the PR with documentation : https://github.com/apache/airflow/pull/18915/ There are a few things that you have to be aware of (read the docs) in this case: - never add any secrets this way (either via image variables, scripts, or arguments of image call) - make sure you use dumb-init in the entrypoint (otherwise your signal propagation will be broken) ``` ENTRYPOINT ["/usr/bin/dumb-init", "--", "/your_entrypoint.sh"] ``` - always use `exec /entrypoint "${@}"` as last command in your custom entrypoint. I explained that all in the PR #18915 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
