Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add containers.<name>.layers and containers.<name>.enableLayerDeduplication #1415

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Sep 5, 2024

These options allow for layer deduplication using the approach described at https://blog.eigenvalue.net/2023-nix2container-everything-once/

Atry added a commit to Atry/nix-ml-ops that referenced this pull request Sep 5, 2024
@domenkozar
Copy link
Member

Is there any reason not to use enableLayerDeduplication?

@Atry
Copy link
Contributor Author

Atry commented Sep 5, 2024

When enableLayerDeduplication is false, layers are independent, therefore a layer would not be invalidated due to changes in other layers.

@domenkozar domenkozar merged commit dfd2a25 into cachix:main Sep 5, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants