potiuk commented on code in PR #27406: URL: https://github.com/apache/airflow/pull/27406#discussion_r1009315291
########## docs/apache-airflow/howto/operator/python.rst: ########## @@ -116,12 +116,109 @@ pre-defined virtual environment. The virtualenv should be preinstalled in the en Python is run and in case ``dill`` is used, it has to be preinstalled in the virtualenv (the same version that is installed in main Airflow environment). + +Dockerfile Example + +``` +# You canswitch the airflow and python version numbers here (limited python versions to each ariflow version) +FROM apache/airflow:2.4.2-python3.8 + +# ExternalPythonOperator +# Compulsory to switch parameter to use your own venve via ExternalPythonOperator Review Comment: Yes. We have the whole contributing quite in https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst (and one of the first things there you will find quick contribution guides with screenshots and step-by-step guidelines for different IDEs - IntelliJ, VScode, even codespaces and gitpod in the cloud if you prefer to work in the cloud. But it's ok to just edit docs in this PR and extract it to an example included in a later follow-up (and that's fine if you share the task wuth @ayushthe1 :D, cooperation in OSS is a good thing). -- 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]
