-
Notifications
You must be signed in to change notification settings - Fork 5
implement raw pullimage functionality #12
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
Conversation
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
|
This PR is based on #13 to fix the initial Godep imports Last commit pulls in containers/image dep (I'll squash it with the second commit to not break git bisect). A notable thing about this is that it pulls in "k8s.io/kubernetes" because in containers/image we import k8s with that path while mrunalp/ocid import k8s as "github.com/kubernetes/kubernetes" Please review individual commits |
server/image.go
Outdated
| if err != nil { | ||
| return nil, err | ||
| } | ||
| src, err := tr.NewImageSource("", false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This disables TLS verification! We need that either hardcoded-on, or figure out a configuration story.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's just a POC to describe the raw flow.. I'll update accordingly after we figure that out..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least file an issue in ocid or add a loud comment to the code, then, please; we will all forget about this line comment in a day or two.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add TODOs and create issues on the repo to make sure that it is addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open some issues later this evening (as well as adding some other todo)
|
Overall I’d prefer to move the skopeo |
|
… all of which will require building a bit more infrastructure in |
|
@mtrmac it isn't, I'm working for the imagecontext story and we'll figure out copy inside containers/image |
|
@mtrmac We are making progress on the bits that we know. None of this is expected to be final state but will continue evolving. Working on these bits will help us identify what is missing in libraries and upstream so we fix things there and improve the integration here. |
|
addressed @mtrmac's comments - added some other TODOs and explanations (now back to containers/image) |
cmd/client/main.go
Outdated
|
|
||
| err = PullImage(client, context.Args().Get(0)) | ||
| if err != nil { | ||
| return fmt.Errorf("pulling image failed failed: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/failed failed/failed/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed - wanted to be clear about the fact the operation failed 😄 (joking)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh :laugh:
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
|
Tested. LGTM. |
Implements a basic and raw pull image functionality (that works though). I left a lot of TODO(s) in the code just to remind us what still needs to be fixed/changed - mainly containers/storage integration and some other stuff with containers/image.
Signed-off-by: Antonio Murdaca runcom@redhat.com