@@ -541,7 +541,7 @@ For all development tasks, unit tests, integration tests, and static code checks
541
541
**CI image ** maintained on the DockerHub in the ``apache/airflow `` repository.
542
542
This Docker image contains a lot of test-related packages (size of ~1GB).
543
543
Its tag follows the pattern of ``<BRANCH>-python<PYTHON_MAJOR_MINOR_VERSION>-ci ``
544
- (for example, ``apache/airflow:master-python3.6-ci `` or ``apache/airflow:v1-10 -test-python3.6-ci ``).
544
+ (for example, ``apache/airflow:master-python3.6-ci `` or ``apache/airflow:v2-0 -test-python3.6-ci ``).
545
545
The image is built using the `<Dockerfile.ci >`_ Dockerfile.
546
546
547
547
The CI image is built automatically as needed, however it can be rebuilt manually with
@@ -638,7 +638,7 @@ The **Production image** is also maintained on the DockerHub in the
638
638
``apache/airflow `` repository. This Docker image (and Dockerfile) contains size-optimised Airflow
639
639
installation with selected extras and dependencies. Its tag follows the pattern of
640
640
``<BRANCH>-python<PYTHON_MAJOR_MINOR_VERSION> `` (for example, ``apache/airflow:master-python3.6 ``
641
- or ``apache/airflow:v1-10 -test-python3.6 ``).
641
+ or ``apache/airflow:v2-0 -test-python3.6 ``).
642
642
643
643
However in many cases you want to add your own custom version of the image - with added apt dependencies,
644
644
python dependencies, additional Airflow extras. Breeze's ``build-image `` command helps to build your own,
@@ -693,56 +693,6 @@ Same as above but uses python 3.7.
693
693
</a >
694
694
</div >
695
695
696
- Building Production images for 1.10 Airflow versions
697
- ----------------------------------------------------
698
-
699
- With Breeze you can also use the master Dockerfile to build custom images for released Airflow versions.
700
- This works in the same way as building production image from master, but you need to add additional switch
701
- ``--install-airflow-version ``. You should pass version of airflow (as released in PyPI). It can be used
702
- to install both released versions and release candidates. Similarly as in case of master images,
703
- we can pass additional extras/dependencies to install via the additional flags.
704
-
705
- .. code-block :: bash
706
-
707
- ./breeze build-image --production-image --additional-extras " jira" --install-airflow-version=" 1.10.11"
708
-
709
- Builds airflow image with released Airflow version 1.10.11 and additional extra "jira" added.
710
-
711
- .. code-block :: bash
712
-
713
- ./breeze build-image --production-image --install-airflow-version=" 1.10.11rc2"
714
-
715
- Builds airflow image with released Airflow version 1.10.11rc2.
716
-
717
-
718
- You can also build airflow directly from GitHub source code - by providing Git Reference via
719
- ``--install-airflow-reference ``. The reference can be a branch name, tag name, or commit hash. This
720
- is useful mostly for testing.
721
-
722
- .. code-block :: bash
723
-
724
- ./breeze build-image --production-image --install-airflow-reference=" v1-10-test"
725
-
726
- This Builds airflow image from the current ``v1-10-test `` branch of Airflow.
727
-
728
- .. code-block :: bash
729
-
730
- ./breeze build-image --production-image \
731
- --install-airflow-reference=" 0d91fcf725f69e10f0969ca36f9e38e1d74110d0"
732
-
733
- This Builds airflow image from the ``0d91fcf725f69e10f0969ca36f9e38e1d74110d0 `` commit hash on
734
- GitHub.
735
-
736
- .. raw :: html
737
-
738
- <div align =" center" >
739
- <a href =" https://youtu.be/4MCTXq-oF68?t=1586" >
740
- <img src =" images/breeze/overlayed_breeze_build_images_released_versions.png" width =" 640"
741
- alt =" Airflow Breeze - Building Production images for 1.10 Airflow versions" >
742
- </a >
743
- </div >
744
-
745
-
746
696
Running static checks
747
697
---------------------
748
698
@@ -823,8 +773,7 @@ Generating constraints
823
773
----------------------
824
774
825
775
Whenever setup.py gets modified, the CI master job will re-generate constraint files. Those constraint
826
- files are stored in separated orphan branches: ``constraints-master ``, ``constraints-2-0 ``
827
- and ``constraints-1-10 ``.
776
+ files are stored in separated orphan branches: ``constraints-master ``, ``constraints-2-0 ``.
828
777
829
778
Those are constraint files as described in detail in the
830
779
`<CONTRIBUTING.rst#pinned-constraint-files >`_ contributing documentation.
@@ -1319,21 +1268,18 @@ This is the current syntax for `./breeze <./breeze>`_:
1319
1268
-p, --python PYTHON_MAJOR_MINOR_VERSION
1320
1269
Python version used for the image. This is always major/minor version.
1321
1270
1322
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
1323
- --install-airflow-version or --install-airflow-reference flags.
1324
-
1325
1271
One of:
1326
1272
1327
- 2.7 3.5 3.6 3.7 3.8
1273
+ 3.6 3.7 3.8
1328
1274
1329
1275
-a, --install-airflow-version INSTALL_AIRFLOW_VERSION
1330
1276
Uses differen version of Airflow when building PROD image.
1331
1277
1332
- 2.0.3 2.0.2 2.0.1 2.0.0 1.10.15 1.10.14 wheel sdist
1278
+ 2.0.3 2.0.2 2.0.1 2.0.0 wheel sdist
1333
1279
1334
1280
-t, --install-airflow-reference INSTALL_AIRFLOW_REFERENCE
1335
1281
Installs Airflow directly from reference in GitHub when building PROD image.
1336
- This can be a GitHub branch like master or v1-10 -test, or a tag like 2.0.0a1.
1282
+ This can be a GitHub branch like master or v2-0 -test, or a tag like 2.0.0a1.
1337
1283
1338
1284
--installation-method INSTALLATION_METHOD
1339
1285
Method of installing Airflow in PROD image - either from the sources ('.')
@@ -1564,12 +1510,9 @@ This is the current syntax for `./breeze <./breeze>`_:
1564
1510
-p, --python PYTHON_MAJOR_MINOR_VERSION
1565
1511
Python version used for the image. This is always major/minor version.
1566
1512
1567
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
1568
- --install-airflow-version or --install-airflow-reference flags.
1569
-
1570
1513
One of:
1571
1514
1572
- 2.7 3.5 3.6 3.7 3.8
1515
+ 3.6 3.7 3.8
1573
1516
1574
1517
-I, --production-image
1575
1518
Use production image for entering the environment and builds (not for tests).
@@ -1611,7 +1554,7 @@ This is the current syntax for `./breeze <./breeze>`_:
1611
1554
1612
1555
Generates pinned constraint files with all extras from setup.py. Those files are generated in
1613
1556
files folder - separate files for different python version. Those constraint files when
1614
- pushed to orphan constraints-master, constraints-2-0 and constraints-1-10 branches are used
1557
+ pushed to orphan constraints-master, constraints-2-0 branches are used
1615
1558
to generate repeatable CI builds as well as run repeatable production image builds and
1616
1559
upgrades when you want to include installing or updating some of the released providers
1617
1560
released at the time particular airflow version was released. You can use those
@@ -1634,12 +1577,9 @@ This is the current syntax for `./breeze <./breeze>`_:
1634
1577
-p, --python PYTHON_MAJOR_MINOR_VERSION
1635
1578
Python version used for the image. This is always major/minor version.
1636
1579
1637
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
1638
- --install-airflow-version or --install-airflow-reference flags.
1639
-
1640
1580
One of:
1641
1581
1642
- 2.7 3.5 3.6 3.7 3.8
1582
+ 3.6 3.7 3.8
1643
1583
1644
1584
-v, --verbose
1645
1585
Show verbose information about executed docker, kind, kubectl, helm commands. Useful for
@@ -1760,12 +1700,9 @@ This is the current syntax for `./breeze <./breeze>`_:
1760
1700
-p, --python PYTHON_MAJOR_MINOR_VERSION
1761
1701
Python version used for the image. This is always major/minor version.
1762
1702
1763
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
1764
- --install-airflow-version or --install-airflow-reference flags.
1765
-
1766
1703
One of:
1767
1704
1768
- 2.7 3.5 3.6 3.7 3.8
1705
+ 3.6 3.7 3.8
1769
1706
1770
1707
1771
1708
####################################################################################################
@@ -1848,16 +1785,13 @@ This is the current syntax for `./breeze <./breeze>`_:
1848
1785
airflow is just removed. In this case airflow package should be added to dist folder
1849
1786
and --use-packages-from-dist flag should be used.
1850
1787
1851
- 2.0.3 2.0.2 2.0.1 2.0.0 1.10.15 1.10.14 wheel sdist none
1788
+ 2.0.3 2.0.2 2.0.1 2.0.0 wheel sdist none
1852
1789
1853
1790
--use-packages-from-dist
1854
1791
In CI image, if specified it will look for packages placed in dist folder and
1855
1792
it will install the packages after entering the image.
1856
1793
This is useful for testing provider packages.
1857
1794
1858
- --no-rbac-ui
1859
- Disables RBAC UI when Airflow 1.10.* is installed.
1860
-
1861
1795
--load-example-dags
1862
1796
Include Airflow example dags.
1863
1797
@@ -1950,12 +1884,9 @@ This is the current syntax for `./breeze <./breeze>`_:
1950
1884
-p, --python PYTHON_MAJOR_MINOR_VERSION
1951
1885
Python version used for the image. This is always major/minor version.
1952
1886
1953
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
1954
- --install-airflow-version or --install-airflow-reference flags.
1955
-
1956
1887
One of:
1957
1888
1958
- 2.7 3.5 3.6 3.7 3.8
1889
+ 3.6 3.7 3.8
1959
1890
1960
1891
-b, --backend BACKEND
1961
1892
Backend to use for tests - it determines which database is used.
@@ -2017,12 +1948,9 @@ This is the current syntax for `./breeze <./breeze>`_:
2017
1948
-p, --python PYTHON_MAJOR_MINOR_VERSION
2018
1949
Python version used for the image. This is always major/minor version.
2019
1950
2020
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
2021
- --install-airflow-version or --install-airflow-reference flags.
2022
-
2023
1951
One of:
2024
1952
2025
- 2.7 3.5 3.6 3.7 3.8
1953
+ 3.6 3.7 3.8
2026
1954
2027
1955
-F, --force-build-images
2028
1956
Forces building of the local docker images. The images are rebuilt
@@ -2419,12 +2347,9 @@ This is the current syntax for `./breeze <./breeze>`_:
2419
2347
-p, --python PYTHON_MAJOR_MINOR_VERSION
2420
2348
Python version used for the image. This is always major/minor version.
2421
2349
2422
- Note that versions 2.7 and 3.5 are only valid when installing Airflow 1.10 with
2423
- --install-airflow-version or --install-airflow-reference flags.
2424
-
2425
2350
One of:
2426
2351
2427
- 2.7 3.5 3.6 3.7 3.8
2352
+ 3.6 3.7 3.8
2428
2353
2429
2354
****************************************************************************************************
2430
2355
Choose backend to run for Airflow
@@ -2556,11 +2481,11 @@ This is the current syntax for `./breeze <./breeze>`_:
2556
2481
-a, --install-airflow-version INSTALL_AIRFLOW_VERSION
2557
2482
Uses differen version of Airflow when building PROD image.
2558
2483
2559
- 2.0.3 2.0.2 2.0.1 2.0.0 1.10.15 1.10.14 wheel sdist
2484
+ 2.0.3 2.0.2 2.0.1 2.0.0 wheel sdist
2560
2485
2561
2486
-t, --install-airflow-reference INSTALL_AIRFLOW_REFERENCE
2562
2487
Installs Airflow directly from reference in GitHub when building PROD image.
2563
- This can be a GitHub branch like master or v1-10 -test, or a tag like 2.0.0a1.
2488
+ This can be a GitHub branch like master or v2-0 -test, or a tag like 2.0.0a1.
2564
2489
2565
2490
--installation-method INSTALLATION_METHOD
2566
2491
Method of installing Airflow in PROD image - either from the sources ('.')
@@ -2584,16 +2509,13 @@ This is the current syntax for `./breeze <./breeze>`_:
2584
2509
airflow is just removed. In this case airflow package should be added to dist folder
2585
2510
and --use-packages-from-dist flag should be used.
2586
2511
2587
- 2.0.3 2.0.2 2.0.1 2.0.0 1.10.15 1.10.14 wheel sdist none
2512
+ 2.0.3 2.0.2 2.0.1 2.0.0 wheel sdist none
2588
2513
2589
2514
--use-packages-from-dist
2590
2515
In CI image, if specified it will look for packages placed in dist folder and
2591
2516
it will install the packages after entering the image.
2592
2517
This is useful for testing provider packages.
2593
2518
2594
- --no-rbac-ui
2595
- Disables RBAC UI when Airflow 1.10.* is installed.
2596
-
2597
2519
****************************************************************************************************
2598
2520
Credentials
2599
2521
0 commit comments