-
Notifications
You must be signed in to change notification settings - Fork 645
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
Increase interoperability with docker-java #1245
Increase interoperability with docker-java #1245
Conversation
…g. Provide a fallback to registry.* when docker.* auth config is not found in order to increase interoperability with docker-java Signed-off-by: Tobias Stadler <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1245 +/- ##
===========================================
- Coverage 55.51% 53.92% -1.6%
+ Complexity 1760 1638 -122
===========================================
Files 156 155 -1
Lines 8471 8251 -220
Branches 1301 1264 -37
===========================================
- Hits 4703 4449 -254
- Misses 3314 3359 +45
+ Partials 454 443 -11
|
Thanks for the PR ! Could you please help me to understand the use case for this request ? As d-m-p doesn't use docker-java I can't see where docker-java comes into play. Are you using another plugin which uses docker-java internally (which one ?) and you don't want to duplicate the properties ? |
Yes, I am also using Arquillian and Testcontainers in my project (both use docker-java). And it would be nice to set the properties only once. |
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.
Thanks ! I see you use point and I think it doesn't harm. So happy to integrate it.
Could you please fix the comments below and add an entry to the changelog.md ?
} | ||
|
||
@Test | ||
public void testRegistrySystemProperty() throws Exception { |
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.
can we please avoid copy & pasting the test ? Just extract a common method which is called once with "docker" and once with "registry" from each individual test.
Helpful would be also a test that ensures that "docker" has precedence over "registry" to keep the default behaviour.
- Test that the docker.* properties are evaluated before registry.*
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.
lgtm
docker-java users registry.* instead docker.* for registry auth config. Provide a fall back to registry.* when docker.* auth config is not found in order to increase interoperability to docker-java