strukturag / spreed-webrtc

WebRTC audio/video call and conferencing server.
GNU Affero General Public License v3.0
1.1k stars 259 forks source link

Docker container based on official image blocks during startup in VMs #467

Open marthjod opened 6 years ago

marthjod commented 6 years ago

The Docker image on https://hub.docker.com/r/spreed/webrtc/ still contains the entrypoint script using /dev/random (https://github.com/strukturag/spreed-webrtc/commit/172ac704e3c8dfd63f34c8b0221dd630b295aabb), causing containers to block forever during startup in environments lacking randomness (VMs, for instance).

Reproduce:

docker run -d ... spreed/webrtc
...
Creating new server secrets ...
# (blocking)
buddhikajay commented 6 years ago

Might be an issue because of lack of entropy to generate secrets. Try following

  1. install rng-tools (apt-get install rng-tools on ubuntu/debian)
  2. sudo rngd -r /dev/urandom

then try to run the docker command

marthjod commented 6 years ago

You're right, but that wasn't my point (plus I don't want to install additional packages in the VM just because a Docker container misbehaves). My request was to update the Docker hub image so it reflects the current (and working) code base.