Skip to content

Commit

Permalink
Describe dockerGroupLayers and how to disable it (#1369)
Browse files Browse the repository at this point in the history
Fixes #1341 

Since 1.7.1 dockerLayerGrouping is deprecated. 

Rename the setting, and add the correct 'disable' statement.
  • Loading branch information
DieBauer committed Oct 4, 2020
1 parent ea442bc commit 1ee8481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sphinx/formats/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ Environment Settings
``dockerApiVersion``
The docker server API version. Used to leverage new docker features while maintaining backwards compatibility.

``dockerLayerGrouping``
``dockerGroupLayers``
The function mapping files into separate layers to increase docker cache hits.
Lower index means the file would be a part of an earlier layer.
The main idea behind this is to COPY dependencies *.jar's first as they should change rarely.
In separate command COPY the application *.jar's that should change more often.
Defaults to detect whether the file name starts with ``ThisBuild / organization``.
To disable layers map all files to no layer using ``dockerLayerGrouping in Docker := (_ => None)``.
To disable layers map all files to no layer using ``dockerGroupLayers in Docker := PartialFunction.empty``.
Publishing Settings
~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 1ee8481

Please sign in to comment.