-
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
Various issues while "yarn install" when Docker image creating #8686
Comments
New info for that case: |
That's bug looks like #5259 |
Did you try migrating to Yarn V2? Hope it helped, |
Hello!
I was trying to run several commands in docker, build dockerfile:
My corporate network filter all ssl trafic, and adds "self signed certificate" in certificate chain.
I override this cert issue by using:
yarn config set cafile mysslcert.crt
But "RUN yarn install" shows several errors, when i just restart docker build:
error An unexpected error occurred: "https://registry.yarnpkg.com/graphql-language-service-interface: unable to get local issuer certificate".
error Could not open cafile: ENOENT: no such file or directory, open '/mysslcert.crt'
error An unexpected error occurred: "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz: unexpected end of file".
error https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz: Integrity check failed for "node-forge" (computed integrity doesn't match our records, got "sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg== sha1-2jmj7l5rSw0yVb/vlWAYkK/YBwk=")
several times i seen this info:
info There appears to be trouble with your network connection. Retrying...
sample of one try:
Sending build context to Docker daemon 8.976MB
Step 1/13 : FROM node:14-buster
---> 24be080286c0
Step 2/13 : WORKDIR /app
---> Using cache
---> 5bea0713139b
Step 3/13 : COPY mysslcert.crt yarn.lock package.json skeleton.tar.gz ./
---> Using cache
---> 068306587850
Step 4/13 : RUN tar xzf skeleton.tar.gz && rm skeleton.tar.gz
---> Using cache
---> 18dac6a3725d
Step 5/13 : RUN yarn config set cafile mysslcert.crt
---> Using cache
---> 78d09840ab96
Step 6/13 : RUN yarn install --frozen-lockfile --production --network-timeout 300000 && rm -rf "$(yarn cache dir)"
---> Running in 682c6acbe81e
yarn install v1.22.5
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz: unexpected end of file".
info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Any suggestions?
The text was updated successfully, but these errors were encountered: