-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Docker container crashes because of missing dependencies since ipfs@v0.51.0 #3376
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
Thanks for bringing this up. I think this is just a bug - WebRTC is only really intended for use in the browser since it's currently the only way in-browser nodes can be dialled - the code you've referenced is part of the daemon startup - used under node which can be dialled over TCP which is vastly preferable. |
Remove electron-webrtc dep - as it was only being used by daemon startup which doesn't typically run under electron. If your application requires webrtc, see [the FAQ](https://github.com/ipfs/js-ipfs/blob/master/docs/FAQ.md#is-there-webrtc-support-for-js-ipfs-with-nodejs) for more information. Fixes #3376
Remove electron-webrtc dep - as it was only being used by daemon startup which doesn't typically run under electron. If your application requires webrtc, see [the FAQ](https://github.com/ipfs/js-ipfs/blob/master/docs/FAQ.md#is-there-webrtc-support-for-js-ipfs-with-nodejs) for more information. Fixes #3376 BREAKING CHANGE: electron-webrtc was accidentally bundled with ipfs, now it needs installing separately
Please try this again with |
Seems to work like a charm. Thank you very much! |
Severity:
critical
Description:
Running the Docker containers fails since the introduction of
ipfs-cli
with it'selectron-webrtc
dependency.It is very difficult to get Electron support in a Alpine-based image because there are no binaries built against musl libc. I have started to work on a fix (switching to a Debian-based Node container) but
electron
andelectron-eval
have a lot of dependencies (libasound2, libgconf-2-4, libgtk2.0-0, libnss3, libxss1, libxtst6, xvfb) so the container gets pretty big.Then I tried to run the container with a small change instead and it worked, too (at the cost of losing WebRTC support, I guess):
Maybe – instead of changing the Dockerfile – it would be better to fix this bug by moving both
electron-webrtc
andwrtc
to theoptionalDependencies
ofipfs-cli
? (Currentlyelectron-webrtc
is in thedependencies
section andwrtc
in the devDependencies section.) According to the log messages they are optional anyway:Steps to reproduce the error:
Healthy container:
Crashing container:
The text was updated successfully, but these errors were encountered: