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

CHE-1312: Add ability to configure credentials for several docker private registries #1544

Merged
merged 2 commits into from
Jun 24, 2016

Conversation

AndrienkoAleksandr
Copy link
Contributor

Add possibility configure credentials for several docker private registries in the che.properties.

@AndrienkoAleksandr
Copy link
Contributor Author

@garagatyi review please

@codenvy-ci
Copy link

Build # 971 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/971/ to view the results.

@codenvy-ci
Copy link

Build # 976 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/976/ to view the results.

@garagatyi
Copy link

LGTM
@skabashnyuk @mmorhun Please take a look

### Docker registry auth config example
#docker.registry.auth.your_registry_name.url=https://index.docker.io/v1/
#docker.registry.auth.your_registry_name.username=user-name
#docker.registry.auth.your_registry_name.password=user-password
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we remove this part if it's not used

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is needed for the sake of documentation I think

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be good to add comment which says that user can configure many registries with different names, because it is not obviously now.

@skabashnyuk
Copy link
Contributor

ok

@benoitf
Copy link
Contributor

benoitf commented Jun 22, 2016

is it a WIP PR or not anymore ?

@garagatyi
Copy link

not anymore

@benoitf
Copy link
Contributor

benoitf commented Jun 22, 2016

so PR should be renamed ?

conn.disconnect();
void checkRegistryIsAvailable() {
if (TRUE.equals(snapshotUseRegistry) && !isNullOrEmpty(registryUrl)) {
String registryLink = "http://" + registryUrl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's strange to have http:// being concatenated with a variable named "URL" because URL is expected to already provide the protocol

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But injected string is not URL

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it was the meaning of my comment, that injected string shouldn't be named with "url" inside as it's not an url

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@mmorhun
Copy link
Contributor

mmorhun commented Jun 22, 2016

LGTM

@AndrienkoAleksandr AndrienkoAleksandr changed the title [WIP] CHE-1312: Add ability to configure credentials for several docker private registries CHE-1312: Add ability to configure credentials for several docker private registries Jun 23, 2016
@AndrienkoAleksandr
Copy link
Contributor Author

Pull request updated. @garagatyi @evoevodin review please.

@codenvy-ci
Copy link

@garagatyi
Copy link

LGTM

@AndrienkoAleksandr AndrienkoAleksandr merged commit 0eb87b8 into master Jun 24, 2016
@AndrienkoAleksandr AndrienkoAleksandr deleted the CHE-1312 branch June 24, 2016 07:39
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.

6 participants