Docker build is dumb about dependency analysis #268

Open
opened 2023-03-31 13:42:49 +00:00 by dboreham · 0 comments
Contributor

Docker did this:

Step 12/14 : RUN yarn global add @cerc-io/console-app
 ---> Using cache

when clearly that's idiotic -- it has no idea whether the latest @cerc-io/console-app package is the same as before. Presumably it is basing its idea of whether the layer can be cached on whether the shell commands are the same as before (basically assuming no input from the external world into the execution of those commands).

The upshot here is that we have no way in stack orchestrator to force the container to be rebuilt even though Docker thinks it doesn't need to be.

Docker did this: ``` Step 12/14 : RUN yarn global add @cerc-io/console-app ---> Using cache ``` when clearly that's idiotic -- it has no idea whether the latest @cerc-io/console-app package is the same as before. Presumably it is basing its idea of whether the layer can be cached on whether the shell commands are the same as before (basically assuming no input from the external world into the execution of those commands). The upshot here is that we have no way in stack orchestrator to force the container to be rebuilt even though Docker thinks it doesn't need to be.
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#268