-
Notifications
You must be signed in to change notification settings - Fork 227
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 for java8 template #105
Comments
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gradle needs proxy options to be specified explicitly, ignores http_proxy, https_proxy and no_proxy environment variables.
Expected Behaviour
Grable run the build successfully
Current Behaviour
Gradle fails when trying to download modules
Possible Solution
Two successful options:
a) Update GRADLE_OPTS in the Dockerfile like this
b) Create gradle.properties at the root if the java8 template with following content:
Steps to Reproduce (for bugs)
You must be behind a proxy, without direct access to the Internet.
Context
Both solutions proposed above works, but you have to modify the template after it is downloaded.
You need to do this for every project you are creating, of if for some reason you download the template again.
Also the template folder is specified in .gitignore, so this configuration wont be saved to your git repository.
Your Environment
docker version
(e.g. Docker 17.0.05 ):Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Docker Swarm and Kubernetes
Operating System and version (e.g. Linux, Windows, MacOS):
Windows and Linux
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: