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

WIP: Add docker fetcher based on Skopeo #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nlewo
Copy link
Collaborator

@nlewo nlewo commented Mar 18, 2019

This fetcher relies on Skopeo to fetch image metadatas, download the image
in order to get its sha256 and to prefetch it.

To use it:

niv add alpine --type docker -a name=alpine -a tag=latest
nix-build  nix/sources.nix -A alpine

Important note: this is WIP and not really tested yet:/

The main objective of this PR is to discuss the implementation: should we create PackageSpec subtypes (one per fetcher for instance) in order to be able to specialize PackageSpec functions to make them more understandable.

Also, I think it would be better to first introduce the niv add subcommands (ie. niv add <github|docker|...>). This is coming soon.

This fetcher relies on Skopeo to fetch metadata and download the image
in order to get its sha256 and to prefetch it.
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.

1 participant