Skip to content

Commit

Permalink
Add slim image to docs/docker-stack/README.md (#23710)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored May 15, 2022
1 parent 694e380 commit cd9d935
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/docker-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,18 @@ You can find the following images there (Assuming Airflow version `2.4.0.dev0`):
* `apache/airflow:2.4.0.dev0` - the versioned Airflow image with default Python version (3.7 currently)
* `apache/airflow:2.4.0.dev0-pythonX.Y` - the versioned Airflow image with specific Python version

Those are "reference" images. They contain the most common set of extras, dependencies and providers that are
Those are "reference" regular images. They contain the most common set of extras, dependencies and providers that are
often used by the users and they are good to "try-things-out" when you want to just take Airflow for a spin,

You can also use "slim" images that contain only core airflow and are about half the size of the "regular" images
but you need to add all the [Reference for package extras](https://airflow.apache.org/docs/apache-airflow/stable/extra-packages-ref.html) and providers that you need separately
via [Building the image](https://airflow.apache.org/docs/docker-stack/build.html#build-build-image).

* `apache/airflow:slim-latest` - the latest released Airflow image with default Python version (3.7 currently)
* `apache/airflow:slim-latest-pythonX.Y` - the latest released Airflow image with specific Python version
* `apache/airflow:slim-2.4.0.dev0` - the versioned Airflow image with default Python version (3.7 currently)
* `apache/airflow:slim-2.4.0.dev0-pythonX.Y` - the versioned Airflow image with specific Python version

The Apache Airflow image provided as convenience package is optimized for size, and
it provides just a bare minimal set of the extras and dependencies installed and in most cases
you want to either extend or customize the image. You can see all possible extras in [Reference for package extras](https://airflow.apache.org/docs/apache-airflow/stable/extra-packages-ref.html).
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/pre_commit/pre_commit_update_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def update_version(pattern: re.Pattern, v: str, file_path: str):
REPLACEMENTS = {
r'^(FROM apache\/airflow:).*($)': "docs/docker-stack/docker-examples/extending/*/Dockerfile",
r'(apache\/airflow:)[^-]*(\-)': "docs/docker-stack/entrypoint.rst",
r'(`apache/airflow:)[0-9].*?((?:-pythonX.Y)?`)': "docs/docker-stack/README.md",
r'(`apache/airflow:(?:slim-)?)[0-9].*?((?:-pythonX.Y)?`)': "docs/docker-stack/README.md",
r'(\(Assuming Airflow version `).*(`\))': "docs/docker-stack/README.md",
}

Expand Down

0 comments on commit cd9d935

Please sign in to comment.