When running npm install inside 'frontend' docker file, error occurs.
Running with production docker-compose
How to reproduce the problem
$docker pull node:13.1.0
$docker run -it -v ./frontent:/app --entrypoint bash node:13.1.0
```root@container:/app# npm install
root@ac4c6f3a1914:/app# npm install
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 140.82.118.3]: errno=Connection refused
npm ERR!
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-16T15_01_20_133Z-debug.log
OR run
``` root@container:/app# yarn install
root@ac4c6f3a1914:/app# npm install
yarn install v1.19.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
Directory: /app
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.118.3]: errno=Connection refused
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
To get circumvent this issue I've found that using
https://github.com/adobe-webplatform/eve.git
instead of the git 'protocol' works i.e.
git://github.com/adobe-webplatform/eve.git
However, I'm not sure how to implement a solution to this.
If it is not too difficult, I wouldn't mind a nudge in the right direction and putting up a PR if IT IS a real bug.
docker info:
Client:
Debug Mode: false
Server:
Containers: 44
Running: 2
Paused: 0
Stopped: 42
Images: 60
Server Version: 19.03.5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.184-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.855GiB
Name: docker-desktop
ID: xxxx-xxxx-xxxx-xxx-xxxx-xxx-xxx
Docker Root Dir: /var/lib/docker
Debug Mode: true
File Descriptors: 51
Goroutines: 66
System Time: 2019-12-16T15:22:47.5637998Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Thank you for reporting the issue. It seems to yarn.lock
issue that is generated automatically. We can't configure it is yarn
bug or your environment (network etc) issue.
@icoxfog417 Have you been able to run this command successfully in your environment?
git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
Sorry it was a firewall issue on my end.
I'll close the Issue!
Atm there is no URL git://github.com/adobe-webplatform/eve.git
, instead we should access the https
prefix. The solution is to change all git://github.com/adobe-webplatform/eve.git
to https://github.com/adobe-webplatform/eve.git
in doccano/frontend/yarn.lock
.
Most helpful comment
Sorry it was a firewall issue on my end.
I'll close the Issue!