You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the build seems to not be using the cache at all - no Using cache messages anymore.
In addition, I also noticed the build is now removing a layer (Removing intermediate container 50aba02ca6f6) at the end of Step2 which it didn't do with the orignal configuration without any declaration.
Of course the same happens with other than skip which I used here only for the sake of this test scenario.
I'm puzzled...
BuildImageConfiguration#getCacheFrom() is a List and not a String. It compiles correctly because the builder proposes two variants of the cacheFrom method: one accepting a collection of string (which is what is expected here) and another with a varargs of String (which is the one actual used here).
With the code as it is written at the moment we effectively get the same result as:
Using an external configuration of type "properties" seems to disable the Docker cache.
To illustrate the issue, I took the "multi-assembly" sample available at https://github.com/fabric8io/docker-maven-plugin/tree/master/samples/multi-assembly. After a first execution to warm up the cache, the second
mvn clean package
gives the following output for the docker build stage:Notice the
Using cache
messages for step 2 & 3 that tell me the docker cache is effectively used.Then I modified the image configuration slightly and added the following declaration in the configuration:
Note that
<mode>
is set toskip
which according to the documentation should be the same as not specifying any<external>
at all (car. https://dmp.fabric8.io/#combining-property-config).Executing
mvn clean package
with this new configuration gives:Now the build seems to not be using the cache at all - no
Using cache
messages anymore.In addition, I also noticed the build is now removing a layer (Removing intermediate container 50aba02ca6f6) at the end of Step2 which it didn't do with the orignal configuration without any declaration.
Of course the same happens with other than
skip
which I used here only for the sake of this test scenario.I'm puzzled...
0.35.0
mvn -v
) :20.10.5
The text was updated successfully, but these errors were encountered: