Skip to content

Issue 674: 3.0.x scheme switch for docker host breaks proxy configure#675

Merged
marcuslinke merged 1 commit intodocker-java:masterfrom
loganbruns:use_original_uri_for_proxy_select
Jan 13, 2017
Merged

Issue 674: 3.0.x scheme switch for docker host breaks proxy configure#675
marcuslinke merged 1 commit intodocker-java:masterfrom
loganbruns:use_original_uri_for_proxy_select

Conversation

@loganbruns
Copy link
Copy Markdown
Contributor

@loganbruns loganbruns commented Aug 17, 2016

Issue: #674

With the 3.0.x release, the code has been changed to use docker hosts of the format:

tcp://host:port

Instead of:

https://host:port

This breaks some of the logic in JerseyDockerCmdExecFactory that configures the proxy setting.


This change is Reviewable

…cp breaks proxy configure

docker-java#674

With the 3.0.x release, the code has been changed to use docker hosts of the format:

  tcp://host:port

Instead of:

  https://host:port

This breaks some of the logic in JerseyDockerCmdExecFactory that configures the proxy setting.
@KostyaSha
Copy link
Copy Markdown
Member

LGTM

@KostyaSha
Copy link
Copy Markdown
Member

Could you also try NETTY impl? Maybe it also broken.

@loganbruns
Copy link
Copy Markdown
Contributor Author

@KostyaSha, I'll give try out the netty impl. Thanks.

@loganbruns
Copy link
Copy Markdown
Contributor Author

@KostyaSha, it doesn't look like the netty implementation has any support for proxies at the moment. I'm up for adding it but if it is okay with you I'd rather add it in a separate PR.

@marcuslinke
Copy link
Copy Markdown
Contributor

@loganbruns Would be great if you could add the netty stuff within this PR.

@loganbruns
Copy link
Copy Markdown
Contributor Author

@marcuslinke, @KostyaSha: I implemented the changes for netty but it doesn't work properly with the netty pipeline. It has problem resolving the proxy host. I'd like to try it with netty 5 but that may be a larger change. Also I'd like to create a separate unrelated PR to change some of the SSL context handling and I'd like to get off our custom build of docker-java (using this branch.) I guess I'd like to ask again to merge this PR and then follow up with other PRs (one for netty upgrade and proxy changes) and the other some unrelated SSL changes.

@loganbruns
Copy link
Copy Markdown
Contributor Author

A brief nag. This PR fixes a bug that prevents using the standard docker-java build from working in many corporate environments that require the use of a proxy. Granted it would be best if this PR fixed the problem for both networking providers but it does at least for the default provider, jersey, and a best faith effort was made for netty as well but there are a number of difficulties. Fixing it for netty is a larger project that probably be in a separate set of PRs starting with catching up with the current version.

@marcuslinke marcuslinke merged commit 5b8ed07 into docker-java:master Jan 13, 2017
@loganbruns
Copy link
Copy Markdown
Contributor Author

@marcuslinke, thanks!

panuse pushed a commit to TuKangTech/docker-java that referenced this pull request Aug 20, 2017
…cp breaks proxy configure (docker-java#675)

docker-java#674

With the 3.0.x release, the code has been changed to use docker hosts of the format:

  tcp://host:port

Instead of:

  https://host:port

This breaks some of the logic in JerseyDockerCmdExecFactory that configures the proxy setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants