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

Pass proxy configuration to the application in startup script #1015

Closed
tartakynov opened this issue Aug 22, 2017 · 1 comment
Closed

Pass proxy configuration to the application in startup script #1015

tartakynov opened this issue Aug 22, 2017 · 1 comment
Labels
feature request universal Zip, tar.gz, tgz and bash issues
Projects

Comments

@tartakynov
Copy link
Contributor

tartakynov commented Aug 22, 2017

In *nix world, there is a widely accepted set of environment variables for proxy configuration:http_proxy, https_proxy, ftp_proxy, no_proxy. SBT already picks up those variables.

But in Java a quite different set of system properties is accepted as described in the following document http://docs.oracle.com/javase/7/docs/technotes/guides/net/proxies.html Many HTTP libraries support Java-style system properties out of the box, whereas *nix standard http_proxy stays neglected.

It would be very handy to have a setting bashScriptUseSystemProxy (it may be a different name) which would enable translation of http_proxy and no_proxy environment variables into following Java arguments upon startup: http.proxyHost, http.proxyPort, http.nonProxyHosts

Information

  • What sbt-native-packager are you using
    1.2.0
  • What sbt version
    0.13.13
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
    MacOS
  • What package are you building (e.g. docker, rpm, ...)
    RPM, Universal zip
  • What version has your build tool (find out with e.g. rpm --version)
    rpm (RPM) 5.4.15
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7)
    CentOS 7
@muuki88 muuki88 added feature request universal Zip, tar.gz, tgz and bash issues labels Aug 23, 2017
@muuki88
Copy link
Contributor

muuki88 commented Aug 23, 2017

Thanks for your feature request.

I'm not sure if native-packager is the right place to put this into.
Setting java options for a specific runtime behavior is not related to creating
packages.

Putting this in the Recipe section in the documentation would be okay, but the feature itself is out-of-scope for native-packager, I'm afraid.

@muuki88 muuki88 closed this as completed Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request universal Zip, tar.gz, tgz and bash issues
Projects
Universal
Awaiting triage
Development

No branches or pull requests

2 participants