-
Notifications
You must be signed in to change notification settings - Fork 644
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
Proxy settings are ignored #1148
Comments
Workaround: pass the settings manually using build args, e.g. |
same problem proxy set in ~/.docker/config.json is ignored plugin version 0.26.0 thanks @jakub-bochenski for the workaround :) |
It would be really useful to be able to configure pushProxy and pullProxy, as either one of them can be behind a proxy. |
@jakub-bochenski So your suggestion is that d-m-p should evaluated a @kortemik For pull and push the situation is different, as this is performed by the Docker dameon itself. I don't see any possibility that a client can influence this. The only way I know to use proxies for pull and push is to configure the Docker daemon accordingly. But I could have missed something, so when you know how a Docker client can influence this, please let me know. |
d-m-p is already processing some of the config values there. Principle of least astonishment would suggest processing all of it. I value the ability to switch between bare docker CLI and d-m-p seamlessly. It makes (would make) hacking/testing/migration etc. so much easier. Finally just as I woulnd't want to have to specify the proxy settings explicitly for Docker CLI, I don't want to hve to expose them for Maven. This is not only about readability but also about portability.
That certainly wouldn't hurt, though I would suggest giving the docker config priority in case of settings being present in both. |
I totally agree that a proxy setting should not be part of the build (i.e. not entered in the pom.xml) and ideally not how the build is called. So it should be specific to the environment where the build is called. So I agree and I think respecting the proxy settings in ~/.docker/config.json is a good thing. @jakub-bochenski @rohanKanojia fancy for jumping on a PR for this ? (sorry, no space left on my plate right now ;-( |
Make BuildService read local ~/.docker/config.json directory and fetch proxy settings.
Make BuildService read local ~/.docker/config.json directory and fetch proxy settings.
Make BuildService read local ~/.docker/config.json directory and fetch proxy settings.
Make BuildService read local ~/.docker/config.json directory and fetch proxy settings.
Make BuildService read local ~/.docker/config.json directory and fetch proxy settings.
Description
Since Docker 17.07 you can configure the client to use a proxy.
When running build via d-m-p it doesn't work.
See linked project on how to reproduce.
Info
mvn -v
) : 3.5.4The text was updated successfully, but these errors were encountered: