potiuk commented on a change in pull request #18915:
URL: https://github.com/apache/airflow/pull/18915#discussion_r729040844



##########
File path: docs/docker-stack/entrypoint.rst
##########
@@ -194,6 +194,69 @@ 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 extension
+---------------------------------
+
+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 extension that 
does any custom operations.
+Such *custom* entrypoint extension should be run after the main entrypoint. 
You can even execute
+the usual components of airflow - scheduler, webserver, worker, triggerer in 
such extension script.
+The entrypoint extension can be added to the image by extending it:
+
+.. code-block:: Dockerfile
+
+    FROM airflow::2.3.0.dev0
+    COPY my_entrypoint_extension.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_extension.sh"
+
+Execute custom code before the Airflow entrypoint
+-------------------------------------------------
+
+If you want to execute some custom code before Airflow's entrypoint you can 
also add extra code executed
+before the Airflow entrypoint by replacing the entrypoint of Airflow and 
calling Airflow's entrypoint as

Review comment:
       ```suggestion
   before the Airflow one by using your custom script and calling Airflow's 
entrypoint as
   ```




-- 
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]


Reply via email to