You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by jh...@apache.org on 2021/08/13 18:20:50 UTC
[airflow] 30/38: Optimize context sent for docker build (#17415)
This is an automated email from the ASF dual-hosted git repository.
jhtimmins pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 93b4c7b7b4dd4696753d918c1394d605100b0170
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Aug 4 15:56:52 2021 +0200
Optimize context sent for docker build (#17415)
The `provider_packages` folder is not needed during docker build
and it often contains copied sources when building the provider
packages. Also _doctree folder is prepared during documentation
building. This makes `docker build` wait for a few seconds when
those directories have a lot of files.
Excluding those decreases docker build overhead significantly.
(cherry picked from commit dfefc66dfb9ae907dc5f49bb4ec7dd65daecd044)
---
.dockerignore | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.dockerignore b/.dockerignore
index d10cfbc..f6113e2 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -40,9 +40,6 @@
!scripts/in_container
!scripts/docker
-# Add provider packages to the context
-!provider_packages
-
# Add tests and kubernetes_tests to context.
!tests
!kubernetes_tests
@@ -129,3 +126,4 @@ airflow/www/static/docs
# Exclude docs generated files
docs/_build/
docs/_api/
+docs/_doctrees/