eclipse-archived / codewind

The official repository of the Eclipse Codewind project
https://codewind.dev
Eclipse Public License 2.0
114 stars 44 forks source link

Allow user to specify multiple docker registry credentials #1178

Closed jopit closed 4 years ago

jopit commented 4 years ago

If the user has an Appsody project with a custom stack/collection for which images are pushed to a registry other than Docker Hub, the project is unable to build because the codewind container does not have the credentials to login to internal docker registry to pull the required images.

To fix this, we need to allow the user to specify credentials for a number of image registries that PFE can use to pull the images.

See Codewind not able to work with stacks images in the internal registry/non-docker hub See Dynamic registry setup for the local scenario See [Hybrid] Create docker registry secret in kube

jopit commented 4 years ago

No way to tell if an Appsody project requires credentials to access the associated docker registry.

Hybrid & Che

Local

The registry to push Codewind projects to may or may not also be a registry to pull Appsody stacks from.

jopit commented 4 years ago

Hybrid & Che

Local, Hybrid & Che

makandre commented 4 years ago

When users enter the registry credentials in the IDEs, I'd like to propose that we do a local docker login as well; this would serve 2 purpose:

j-c-berger commented 4 years ago

Feel free to assign me @micgibso and @sishida

tetchel commented 4 years ago

here's the existing page which will be mostly out of date after 0.7 https://www.eclipse.org/codewind/dockerregistry.html

tetchel commented 4 years ago

merged https://github.com/eclipse/codewind-vscode/pull/323

eharris369 commented 4 years ago

@j-c-berger @sishida There is a "Learn more" link in the Manage Registries dialog that needs a URL for the documentation for this feature. Can you give us a URL even if the documentation is not complete yet so we can update the code?

sishida commented 4 years ago

@eharris369 This is the main Docker registry file that I am aware of: https://www.eclipse.org/codewind/dockerregistry.html

If we want to use this link, we should add a new section about specifying multiple Docker registry credentials. We could also link directly to this new section.

tetchel commented 4 years ago

Steps 1 and 2 in the linked page are invalid now and should be replaced by the new documentation

eharris369 commented 4 years ago

Should the examples use the same terms as in the IDEs? Address for host (docker.io) and namespace for the <username> part of docker.io/<username>?

image

(Feel free to suggest improvements to any of the strings in the above dialog.)

sishida commented 4 years ago

I generally lean on the side of consistency. So unless there's a reason to change up the terms, my vote is for using the same terms. :)

Also, here are some minor edits:

j-c-berger commented 4 years ago

@jopit, as always, thank you for the detailed and spot-on feedback! Looking forward to progressing with this issue.

@tetchel, question regarding your comment on steps 1 and 2 for the dockerregistry doc: https://www.eclipse.org/codewind/dockerregistry.html

Do we want to replace steps 1 and 2 with the content that I'm developing now? Basically, this issue will focus on dockerregistry and update those steps? Or, will I be making a whole new doc for this issue (as we earlier discussed) and update dockerregistry? In which case, I can open a second issue for the latter since there will be two separate docs being worked on. Thanks!

maysunfaisal commented 4 years ago

@j-c-berger with regards to the question addressed to @tetchel, I have put a comment on PR https://github.com/eclipse/codewind-docs/pull/261/files#r357857126

Steps 1 and 2 needs to be merged, because they;re now done with the same UI (Image Registries): Screen Shot 2019-12-13 at 5 36 29 PM

But the keys and commands in the doc are no longer relevant with the new UI. See the screenshot above for reference. And I think we can still host the doc at https://www.eclipse.org/codewind/dockerregistry.html

sishida commented 4 years ago

Got confirmation from @j-c-berger that this issue is good to close. :)