Replies: 2 comments 4 replies
-
Is there any chance someone can respond to this? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I wonder if this section of the docs addresses this issue https://nx.dev/recipes/ci/ci-deployment#prepare-applications-for-deployment-via-ci? Executors like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm quite new in the monorepos landscape, and I didn't use Nx yet (I like to master more basic tools before jumping into more powerful ones, to avoid situations where half my stack feels like black magic).
One of the problems I faced is ensuring that I can reuse docker builder cache layers as most as possible in the presence of "shared/global" lockfiles (as it happens when using yarn workspaces, where there's a single global yarn.lock file). As you might already know/imagine, this is a problem because some parts of the lockfile can change without affecting the real behavior of the build, but because its checksum changes, the cache layer associated to it has to be invalidated.
Because of this, I wrote a small (experimental) tool: https://github.com/Coder-Spirit/lock-distill , that takes care of creating "distilled" lockfiles that can be mounted/copied during the build process, minimising the amount of caches invalidation.
I discussed this with a colleague, and he pointed out the existence of the prune command in turborepo ( https://turborepo.org/docs/reference/command-line-reference#--docker ), that does basically the "same"... but at a much greater scale.
How does Nx and its docker-related plugins deal with this case?
Beta Was this translation helpful? Give feedback.
All reactions