-
Notifications
You must be signed in to change notification settings - Fork 40
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
Multiple dockercfg #9
Conversation
7629f71
to
f328861
Compare
@@ -93,7 +93,7 @@ func (i *defaultImageInspector) Inspect() error { | |||
container, err := client.CreateContainer(docker.CreateContainerOptions{ | |||
Name: randomName, | |||
Config: &docker.Config{ | |||
Image: i.opts.Image, | |||
Image: i.opts.Image, |
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.
@enoodle why this change?
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 am sorry, Its a problem with my vim and its lint.. its autocorrects this. I will look into this.. Oo
f328861
to
5e43312
Compare
6fb3d2b
to
23b617a
Compare
} | ||
|
||
func TestGetAuthConfigs(t *testing.T) { | ||
|
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.
@enoodle extra while line
23b617a
to
da2d0a2
Compare
da2d0a2
to
8e8cbc7
Compare
=== RUN TestValidate |
shouldFail bool | ||
}{ | ||
"two dockercfg": {opts: goodTwoDockerCfg, shouldFail: false}, | ||
"username and passwordFile": {opts: goodUserAndPass, shouldFail: 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.
should we add failing tests too?
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.
added
@enoodle for the record can you drop here in the PR comments how the command line looks like? Thanks. |
8e8cbc7
to
8c21e1c
Compare
@simon3z added example command line in the PR comment |
8c21e1c
to
ac92a0f
Compare
@pweil- LGTY? |
All my comments have been addressed. LGTM. Thanks @enoodle! |
@simon3z ping |
ac92a0f
to
8d10a87
Compare
e2e tests initial commit
Adds support for multiple dockercfg files defined by the user with repeated flags:
--dockercfg file1 --dockercfg file2
. This will try to pull the image with all the authentications from all the files. (Assuming the user is not particular with which authentication he wants to use otherwise he would have only sent that one..):sudo ./image-inspector --image=registry.access.redhat.com/openshift3/metrics-cassandra --chroot --serve=0.0.0.0:5000 --path=/tmp/image-content/ --dockercfg dockercfg1 --dockercfg dockercfg2