RepoBirdBot opened a new pull request, #50162: URL: https://github.com/apache/airflow/pull/50162
This commit updates the Docker Compose configuration to address an issue where tasks fail due to ownership problems when the `AIRFLOW_UID` environment variable is not defined. Previously, a separate `CHOWN_UID` variable was used (with a fallback to a hardcoded value of 50000). With these changes: - The fallback code for `CHOWN_UID` is removed. - The script now checks if `AIRFLOW_UID` is unset and, if so, uses `id -u` to set `AIRFLOW_UID` to the current user's UID. - The ownership commands in the script explicitly use the `AIRFLOW_UID` variable to change the ownership of `/opt/airflow` and its shared volumes. This update improves the flexibility of the Docker Compose setup by dynamically determining the UID to use for file ownership, thereby mitigating any potential issues related to unset UID scenarios and reducing warnings during startup. Closes #48931. --- *Created with [Repobird.ai](https://repobird.ai) 📦🐦* -- 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]
