You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/09/22 06:54:46 UTC
[airflow] branch main updated: Fix ``docker-stack`` docs build
(#18419)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new bbb5fe2 Fix ``docker-stack`` docs build (#18419)
bbb5fe2 is described below
commit bbb5fe28066809e26232e403417c92c53cfa13d3
Author: Jed Cunningham <66...@users.noreply.github.com>
AuthorDate: Wed Sep 22 00:54:21 2021 -0600
Fix ``docker-stack`` docs build (#18419)
---
docs/docker-stack/build-arg-ref.rst | 2 ++
scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/docker-stack/build-arg-ref.rst b/docs/docker-stack/build-arg-ref.rst
index 6dc4238..2f4afe9 100644
--- a/docs/docker-stack/build-arg-ref.rst
+++ b/docs/docker-stack/build-arg-ref.rst
@@ -70,6 +70,7 @@ Those are the most common arguments that you use when you want to build a custom
List of default extras in the production Dockerfile:
.. BEGINNING OF EXTRAS LIST UPDATED BY PRE COMMIT
+
* amazon
* async
* celery
@@ -96,6 +97,7 @@ List of default extras in the production Dockerfile:
* ssh
* statsd
* virtualenv
+
.. END OF EXTRAS LIST UPDATED BY PRE COMMIT
Image optimization options
diff --git a/scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py b/scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py
index 17309e7..113d0c2 100755
--- a/scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py
+++ b/scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py
@@ -67,12 +67,12 @@ def check_dockerfile():
is_copying = True
for line in content:
if line.startswith(START_LINE):
- result.append(line)
+ result.append(f"{line}\n")
is_copying = False
for extra in extras_list:
result.append(f'* {extra}')
elif line.startswith(END_LINE):
- result.append(line)
+ result.append(f"\n{line}")
is_copying = True
elif is_copying:
result.append(line)