Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Sam/nix2container #45

Merged
merged 3 commits into from
Feb 22, 2024
Merged

Sam/nix2container #45

merged 3 commits into from
Feb 22, 2024

Conversation

samrose
Copy link
Collaborator

@samrose samrose commented Feb 22, 2024

What kind of change does this PR introduce?

refactoring docker image build to use https://github.com/nlewo/nix2container

What is the current behavior?

builtin nixpkgs dockerTools pushes the entire image tar into the nix store, which takes up a huge amount of space

What is the new behavior?

nix2container is smarter about build/rebuild of layers + builds an artifact which describes a container layer with a list of Nix store paths.

@samrose samrose self-assigned this Feb 22, 2024
@samrose samrose marked this pull request as draft February 22, 2024 18:47
@samrose
Copy link
Collaborator Author

samrose commented Feb 22, 2024

(converted to a draft for the moment until I rework the gh action related to pushing docker image to registry)

@samrose
Copy link
Collaborator Author

samrose commented Feb 22, 2024

actually those docker and other gh actions are not in use yet. I'll make those another PR

@samrose samrose marked this pull request as ready for review February 22, 2024 18:50
@olirice olirice merged commit 72cddc5 into main Feb 22, 2024
2 checks passed
@olirice olirice deleted the sam/nix2container branch February 22, 2024 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants