-
Notifications
You must be signed in to change notification settings - Fork 63
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
Create a bundle or image directly as a tar file #55
Comments
This feels like a good enhancement for imgpkg. One question we'd like to pose is whether this fits into a top level command or should be separated? At the moment, my understanding is that |
The idea behind doing this as a separated command is to separate these 2 concerns and also do not overload the
Currently when you do the flow If you check https://github.com/vmware-tanzu/carvel-imgpkg/blob/develop/pkg/imgpkg/imagetar/tar_writer.go#L63 you will see that we already save and read a |
@joaopapereira do we have enough information here to add this to our backlog? @ZihanJiang96 would you have an interest in submitting a pr for this? |
Yes, I think we have enough information for this implementation. Nevertheless, we should do some UX investigation to ensure that our users understand what the command does. |
Current want I am doing to get a img tar: -> imgpkg push -i $IMAGE_NAME:$TAG -f $PATH_TO_FILE
-> docker save $IMAGE_NAME:$TAG -o example.tar My expectation is something like this, in this case, we never push the image to the registry. -> imgpkg build --tag $TAG --to-tar example.tar -f $PATH_TO_FILE |
any updates on this functionality being added? this would be very helpful for our development flow. |
@aaronshurley is this in our prioritized backlog somewhere? |
I moved it to our prioritized backlog since this enhancement has built up a demand. We likely won't be able to start this work until at the earliest mid-to-late August due to existing priorities and folks taking vacation. We would welcome contributions for this if anyone is up for it. Please let us know. @vrabbi @ZihanJiang96 |
@vrabbi Are you able to share your development flow? Curious to learn whether this feature would still be useful |
Im very interested in this feature More than happy to jump on a zoom if that would be helpful to explain my use case and answer any questions I think an imgpkg build command makes the most sense as we are building and not pushing but thats a debatable opinion im building in an internet accessible network and then only using it in an air gapped environment pushing to a repo just takes time and isnt useful in this case as i am purely collecting manifests and images into the bundle so that i can bring it into an air gapped network |
FWIW, there may be an additional use-case for this feature: carvel-dev/kbld#158.
|
been brainstorming this with @joaopapereira, we have settled on
(--inflate naming is up for debate). above plan also addresses #37 and makes the commands consistent whether working with registry or tarballs. |
Sounds a very good improvement. I would like to understand more about it. |
Describe the problem/challenge you have
In a scenario where the artifact that will be shared is a tar, there might not be a need to use the registry as an intermediary step. This would allow the users to combine the commands
imgpkg push
+imgpkg copy --to-tar
in a single command and without storing extra images in a registryDescribe the solution you'd like
Scenario for images
Given a set of files in examples/basic-step-1
When execute
imgpkg build --tag v0.5.0 -f examples/basic-step-1 --to-tar some.tar
Then copy the image to a registry
imgpkg copy --tar some.tar --to-repo localhost:5000/some-image
And retrieve it using
imgpkg pull -i localhost:5000/some-image:v0.5.0
Scenario for bundles
Given a bundle in examples/basic-step-2
When execute
imgpkg build --tag v0.5.0 -f examples/basic-step-1 --to-tar some-bundle.tar
Then copy the bundle to a registry
imgpkg copy --tar some-bundle.tar --to-repo localhost:5000/some-bundle
And retrieve it using
imgpkg pull -b localhost:5000/some-image:v0.5.0
Notes:
Based on a request from Zihan Jiang: Slack conversations
The text was updated successfully, but these errors were encountered: