From d6db75bd85a5df3f2dff0eb96c68199f18ed7621 Mon Sep 17 00:00:00 2001 From: William Stewart Date: Wed, 15 Jul 2020 16:45:32 +0200 Subject: [PATCH 1/3] Document empty_files --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b31dfe60..41252fc15 100644 --- a/README.md +++ b/README.md @@ -1583,7 +1583,7 @@ configuration. See [here](#container_push-custom-client-configuration) for detai ## container_layer ```python -container_layer(data_path, directory, empty_dirs, files, mode, tars, debs, symlinks, env) +container_layer(data_path, directory, empty_dirs, empty_files, files, mode, tars, debs, symlinks, env) ``` A rule that assembles data into a tarball which can be use as in `layers` attr in `container_image` rule. @@ -1660,12 +1660,22 @@ A rule that assembles data into a tarball which can be use as in `layers` attr i empty_dirs List of directories, optional -

Directory to add to the layer.

+

Directory to remove in the layer.

A list of empty directories that should be created in the Docker image.

+ + empty_files + + List of files, optional +

File to remove to the layer.

+

+ A list of empty files that should be created in the Docker image. +

+ + files From 0a264eeaa09fb3e34c3dd130012f4382ba70a156 Mon Sep 17 00:00:00 2001 From: zoidbergwill Date: Thu, 11 Mar 2021 15:41:49 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41252fc15..310e260ad 100644 --- a/README.md +++ b/README.md @@ -1660,7 +1660,7 @@ A rule that assembles data into a tarball which can be use as in `layers` attr i empty_dirs List of directories, optional -

Directory to remove in the layer.

+

Directory to add in the layer.

A list of empty directories that should be created in the Docker image.

@@ -1670,7 +1670,7 @@ A rule that assembles data into a tarball which can be use as in `layers` attr i empty_files List of files, optional -

File to remove to the layer.

+

File to add to the layer.

A list of empty files that should be created in the Docker image.

From 20334607e7e7efc85f499f51366c5bce52b00e39 Mon Sep 17 00:00:00 2001 From: zoidbergwill Date: Thu, 11 Mar 2021 15:43:03 +0100 Subject: [PATCH 3/3] Apply suggestions from code review --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 310e260ad..2abdfcad1 100644 --- a/README.md +++ b/README.md @@ -1660,7 +1660,7 @@ A rule that assembles data into a tarball which can be use as in `layers` attr i empty_dirs List of directories, optional -

Directory to add in the layer.

+

Directory to add to the layer.

A list of empty directories that should be created in the Docker image.

@@ -1669,7 +1669,7 @@ A rule that assembles data into a tarball which can be use as in `layers` attr i empty_files - List of files, optional + List of empty files, optional

File to add to the layer.

A list of empty files that should be created in the Docker image.