-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Create a documentation package for Docker image #14765
Conversation
The variables that control the "execution" behaviour start with ``_AIRFLOW`` to distinguish them | ||
from the variables used to build the image starting with ``AIRFLOW``. | ||
|
||
The image entrypoint works as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section seems to have a lot of repetition with the following sections but I will update that in the next PR.
|
||
* The working directory is ``/opt/airflow`` by default. | ||
|
||
* If ``AIRFLOW__CORE__SQL_ALCHEMY_CONN`` variable is passed to the container and it is either mysql or postgres |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not true for the image for Airflow 2.0. For Airflow 2.o, we use airflow db check
command.
* ``redis://`` - default port 6379 | ||
* ``postgres://`` - default port 5432 | ||
* ``mysql://`` - default port 3306 | ||
* ``sqlite://`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not supported.
|
||
Here just a few examples are presented which should give you general understanding of what you can customize. | ||
|
||
This builds production image in version 3.6 with default extras from the local sources (master version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had these examples repeated twice in the documentation - once in the "Customizing the image" section and the second time under the tables in the "Production image build arguments" section. Some examples were common and some were different. Now we have one place with examples.
specific language governing permissions and limitations | ||
under the License. | ||
|
||
Entrypoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This page contains a combination of content from several sections, incl., Using the production image, Actions executed at image start. It's not the best idea, but seems sufficient for now. I would like to write the "Using the production image" section a little differently so that the user can actually run Airflow after reading this page and that there would not be so much duplicate information.
a4cc404
to
73fc44f
Compare
The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest master or amend the last commit of the PR, and push it with --force-with-lease. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks @mik-laj -- some minor suggestions added
Co-authored-by: Kaxil Naik <[email protected]>
This reverts commit 03d3c7d.
…he#14765)" (apache#14867)" This reverts commit 6405382.
@mik-laj Is this published on the web yet? I can't seem to find it. |
It is at http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/docker-stack/index.html You can find the latest docs (docs from Master) at s.apache.org/airflow-docs. |
Depends on: #14762
Close: #14644 (comment)
I am extracting documentation for Docker image as a new documentation package to clearly separate documentation for apache-airflow pip package I Docker Image. Even though it is related, it is not the same. Docker Image is built on top of the apache-aiirflow package. Like the Helm Chart it is built on top of Docker Image.
This package has no versioning as its content is applicable to both Airflow 1.10 and Airflow 2.0.
For now, I have tried to limit the changes to the content to make sure everything was successfully migrated to the new package.
^ 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.