-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ARM platform #22127
Add support for ARM platform #22127
Conversation
I am refreshing the images now and will test it after the refreshing is done - with both Linux and Mac OS M1, what we should end-ip with is that our "ghcr.io" images get multi-platform and when running Breeze on M1, you will pull arm64, and on intel, you will pull amd64. The images should be refreshed in max 2 hours (it takes a lot of time to build ARM image on linux - I will optimize it later). Once it is, I will ping here and I would love if someone with intel-based MacOS could test it as well. Make sure to checkout my branch :)
|
0bf3074
to
7d51e73
Compare
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
d2fb3c2
to
6d2d3ff
Compare
This support is mostly for the developers, not for CI full chain yet. It has several limitations: * no MySQL client support * no MsSQL client support * no CI tests yet What is implemented: * automated detection of ARM/AMD architecture when building and running breeze * automated cache refresh on CI for ARM/AMD Currently only development (ghcr.io) images are supported for ARM. Fixes: apache#18849 Fixes: apache#17494 Relates to: apache#15635 The images published in DockerHub for now are AMD64 only. We will run development with M1 images for some time and later we will likely make our DockerHub images multi-platform as well. Also Hadolint does not have ARM images yet so we had to disable it and we should re-enable it back after the support is added. See hadolint/hadolint#411
Previous apache#22127 had `--push` added in a wrong place. It should only be added when cache is being built and it was added always, with resulted in authentication error as login has not been performed before the --push.
Previous #22127 had `--push` added in a wrong place. It should only be added when cache is being built and it was added always, with resulted in authentication error as login has not been performed before the --push.
The apache#22127 change introduced a change how execution of docker commnds was done (due to LD_PRELOAD change) and they started to use entrypoint_ci, however this caused undesired effect of running database initialization and printing extra lines which was not needed and cluttered the output. This PR introduced SKIP_ENVIRONMENT_INITIALIZATION that (if set to true) skips the entire initialization of the entrypoint_ci
The #22127 change introduced a change how execution of docker commnds was done (due to LD_PRELOAD change) and they started to use entrypoint_ci, however this caused undesired effect of running database initialization and printing extra lines which was not needed and cluttered the output. This PR introduced SKIP_ENVIRONMENT_INITIALIZATION that (if set to true) skips the entire initialization of the entrypoint_ci
This support is mostly for the developers, not for CI full chain yet.
It has several limitations:
What is implemented:
running breeze
Currently only development (ghcr.io) images are supported for ARM.
Fixes: #18849
Relates to: #15635
The images published in DockerHub for now are AMD64 only. We will
run development with M1 images for some time and later we will
likely make our DockerHub images multi-platform as well.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.