Open cailloumajor opened 3 years ago
In addition to being annoying to wait for the full build each time, it fills up the device storage.
@cailloumajor running into same issue, did you manage to resolve this?
@ToolKami no
Hi! Is there any activity on this?
Expected Behavior
Pushing an application to a device in local mode should take advantage of build layer caching.
Actual Behavior
Given the following multi-stage
Dockerfile.template
:Each time I run
balena push --noparent-check --nolive xxxxxxx.local
, a complete build of the image is done, even if onlystart.sh
file (which intervenes at the very end of the build process) is modified. I also tried to run the same command with no modification of the code, giving the same effect.Using
DEBUG=1
env var, the debug log just before the build starts shows:I looked for a reason for the
COPY package.json yarn.lock ./
instruction to issue a cache miss, and found that for each new build, the checksum of copied files (given bybalena history --no-trunc <IMAGE ID>
) is the same, in which case balena engine should hit the cache of the last build.Specifications
balena-cli version "12.44.13"
Node.js version "12.18.1"