stantaneous commented on issue #49495:
URL: https://github.com/apache/airflow/issues/49495#issuecomment-2829973372

   For anyone trying to patch this in their docker compose environment before 
the new version is available to fix this issue.
   
   You can create a folder `airflow-patch` in our compose project directory. 
For each of the patches, create the file and folder in your airflow-patch 
folder. You can find the files in the Files Changed section of each of the PR.
   - #49581: Copy the override.py file to 
`./airflow-patch/airflow/providers/fab/auth_manager/security_manager/override.py`
   - #49721: Copy the login.py file to 
`./airflow-patch/airflow/api_fastapi/auth/managers/simple/routes/login.py`
   - #49724: Copy the views.py file to 
`./airflow-patch/airflow/providers/fab/www/views.py`
   
   This is how your compose project directory should look:
   ```
   .
   ├── docker-compose.yml
   ├── Dockerfile
   ├── airflow-patch/
   │   └── airflow/
   │       ├── providers/
   │       │   └── fab
   │       │   │    └── auth_manager
   │       │   │    │    └── security_manager
   │       │   │    │    │    └── override.py     # patched file from PR
   │       │   │    └── ... (other patched files)
   └── ... (other files like .env, dags, logs, etc.)
   ```
   
   You can then use Dockerfile to copy the patched file to the containers
   
   ``` Dockerfille
   USER root
   
   ENV SITE_PACKAGES_DIR /home/airflow/.local/lib/python3.12/site-packages
   
   # Copy the entire patch structure into the site-packages directory
   COPY --chown=airflow:airflow ./airflow-patch/ ${SITE_PACKAGES_DIR}/
   ```


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