This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch potiuk-patch-1 in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 44afd37f04e6acaad58d9722a42bd7bf985cf161 Author: Jarek Potiuk <[email protected]> AuthorDate: Tue Oct 12 19:49:16 2021 +0200 Update entrypoint.rst --- docs/docker-stack/entrypoint.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/docker-stack/entrypoint.rst b/docs/docker-stack/entrypoint.rst index 3f4d8e4..97006d4 100644 --- a/docs/docker-stack/entrypoint.rst +++ b/docs/docker-stack/entrypoint.rst @@ -194,6 +194,27 @@ If there are any other arguments - they are simply passed to the "airflow" comma optional arguments: -h, --help show this help message and exit +Add your own entrypoint +----------------------- + +Airflow image executes a lot of steps in the entrypoint, but it does not do everything that you might +want to run - and you might want to provide your own entrypoint which does any custom operations. +Such ``custom`` entryopoint should be run after the main entrypoint. You can even execute +the usual components of airflow - scheduler, webserver, worker, triggerer in such script. +The entrypoint can be addedd to the image by extending it: + +.. code-block:: Dockerfile + + FROM airflow::2.3.0.dev0 + COPY my_entrypoint.sh / + + +And then you can run this script by running the command: + +.. code-block:: bash + + docker run -it apache/airflow:2.3.0.dev0-python3.6 bash -c "/my_entrypoint.sh" + Signal propagation ------------------
