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

coursier-cli_2.11-1.0.0-RC1 is not proxy aware? #888

Closed
cequencer opened this issue Aug 2, 2018 · 3 comments
Closed

coursier-cli_2.11-1.0.0-RC1 is not proxy aware? #888

cequencer opened this issue Aug 2, 2018 · 3 comments

Comments

@cequencer
Copy link

I am behind a firewall that requires proxy for any HTTP/HTTPS connections.
I have all the necessary Unix environment variables for the proxy settings.
In this environment I managed to download "coursier-cli" via this command as a first time user of coursier-cli:

curl --proxy <proxy.server.com:port> -s -L -o coursier https://github.com/coursier/coursier/raw/v1.0.0-RC1/coursier

After obtaining the executable, coursier-cli, it times out when I either tries to 'launch' or 'bootstrap' as follows:

$ ./coursier launch --help
Error while downloading https://oss.sonatype.org/content/repositories/releases/io/get-coursier/coursier-cli_2.11/1.0.0-RC1/coursier-cli_2.11-1.0.0-RC1-standalone.jar: Connecti
on timed out (Connection timed out), ignoring it

$ ./coursier bootstrap --help
Error while downloading https://oss.sonatype.org/content/repositories/releases/io/get-coursier/coursier-cli_2.11/1.0.0-RC1/coursier-cli_2.11-1.0.0-RC1-standalone.jar: Connecti
on timed out (Connection timed out), ignoring it

I want to a different machine that is not behind a firewall without any proxy, the coursier-cli is able to download all the dependencies and generate the --help information. I scanned through this --help information and none of them provides any type of proxy configuration acceptance. Is there a plan to support proxy?

According to this project's README.md file, coursier-cli supports "passing proxy as an additional argument to the artifact being launched." However, coursier-cli is not able to download the it's own dependencies jars into it's startup cache to get to that point.

Maybe the documentation to support proxy is not documented yet?

I am already seeing similar issues being posted in the wild without good resolution. For example,

  1. StackOverflow question here
  2. Github coursier issue coursier-cli_2.11-1.0.0-M15-standalone.jar: Connection timed out #425

Thanks to the community's support in making this project possible.

@cequencer
Copy link
Author

cequencer commented Aug 2, 2018

Another idea that can help people behind firewall to use coursier is the ability to define a custom Maven settings.xml file to define local repository that is already mirroring the public Nexus repositories or proxy settings to help coursier source the artifacts in this firewall environments for bootstrap and runtime situations. If this idea should be extracted and become it's own issue, feel free to do so.

Just to provide additional context that I am trying to get jupyter-scala to work behind the firewall, with details of my attempts described almond-sh/almond#189

@alexarchambault
Copy link
Member

I'm in the midst of adding a page about proxies on the coursier website (#970), it can already be seen at https://github.com/coursier/coursier/blob/94c30a320370da983e224067054b0bbaf2fcf2a5/doc/docs/other-proxy.md.

@alexarchambault
Copy link
Member

The website now has a page about proxies.

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

No branches or pull requests

2 participants