-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn install
fails silently inside docker container behind a corporate proxy
#6963
Comments
Tried the same in node:10.5 instead of node:10.15 image, the yarn version was 1.7.0 instead of 1.12.3, and it does show error messages:
Version 1.12.3 is not handling the error like it was used to. I tested in node:latest that has the yarn 1.13.0 and it doesn't too, the behavior is the same as node:10.15 image (with yarn 1.12.3) |
Hello @lmcarreiro it works like this |
Thanks @yan12125 - confirmed this is fixed in |
Tried in node:12 with yarn 1.16.0 and it is fixed. |
Do you want to request a feature or report a bug?
It is a bug
What is the current behavior?
It fails silently with exit code 0
If the current behavior is a bug, please provide the steps to reproduce.
Download the
package.json
andyarn.lock
from this gistCreate a
Dockerfile
with this content:docker build .
I ran it behind a corporate proxy, without passing the build environment variables
http_proxy
andhttps_proxy
. It fails silently in the step 2 of the install with no error message and exit code zero.If I run
docker build . --build-arg http_proxy=http://user:pass@proxy-host:port --build-arg https_proxy=http://user:pass@proxy-host:port
it works fine.What is the expected behavior?
An error message saying that some http request failed.
Please mention your node.js, yarn and operating system version.
OS, node and yarn version are from the official docker image
node:10.15.0
:The text was updated successfully, but these errors were encountered: