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

Docker install fails when behind a proxy #21

Open
jc-rode opened this issue Feb 14, 2020 · 0 comments
Open

Docker install fails when behind a proxy #21

jc-rode opened this issue Feb 14, 2020 · 0 comments

Comments

@jc-rode
Copy link

jc-rode commented Feb 14, 2020

The "docker build" was failing due to timeouts:

Downloading from vaadin-prereleases: http://maven.vaadin.com/vaadin-prereleases/com/vaadin/vaadin-bom/8.9.4/vaadin-bom-8.9.4.pom
Downloading from opendaylight-mirror: https://nexus.opendaylight.org/content/repositories/public/com/vaadin/vaadin-bom/8.9.4/vaadin-bom-8.9.4.pom
Downloading from vaadin-addons: http://maven.vaadin.com/vaadin-addons/com/vaadin/vaadin-bom/8.9.4/vaadin-bom-8.9.4.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/vaadin/vaadin-bom/8.9.4/vaadin-bom-8.9.4.pom
[�[1;31mERROR�[m] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact com.vaadin:vaadin-bom:pom:8.9.4 from/to opendaylight-mirror (https://nexus.opendaylight.org/content/repositories/public/): Connect to nexus.opendaylight.org:443 [nexus.opendaylight.org/199.204.45.87] failed: Connection timed out (Connection timed out) @ line 36, column 16

Having the http_proxy and https_proxy env variables set in the container did not help...

I've added this line in the Dockerfile and it built successfully:

ENV MAVEN_OPTS="-Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyHost= -Dhttps.proxyPort="

May the Dockerfile script could set MAVEN_OPTS automatically based on http_proxy and https_proxy... or document what needs to be done to make the install successful when behind a proxy.

Thanks.

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

1 participant