Problems with resin-wpe in a multi-container deployment (PI3)

docker

#1

I’m having some problems getting resin-wpe working in a multi-container deployment. If I take the https://github.com/resin-io-projects/resin-wpe project as-is and push it to my devices, then everything works as expected. I can see the WPE_URL that I’ve configured and everything seems fine. However, if I take that same project and add this very simple docker-compose.yml file:

version: '2.1'
services:
  display:
    build: .
    privileged: true

Then all I get is a blank screen. The logs don’t show the usual Hello InjectedBundle messages that the single-container deployment shows.

I’ve also tried other options of adding capabilities and mapping devices with the same results. Does anyone have a working configuration of WPE with multi-containers?


#4

Hey @Cryowatt , maybe check out my project here: https://github.com/resin-io-projects/multicontainer-demo-rpi3

You can see how I set up WPE here: https://github.com/resin-io-projects/multicontainer-demo-rpi3/blob/master/docker-compose.yml#L18


#6

Alright, so I took your project as-is and pushed it to my devices. It failed initially because /dev/fb1 didn’t exist (is this my problem, or is it just because I’m only using HDMI?)

I removed /dev/fb1 from the devices and pushed again, and I’m seeing the same blank white screen as before.


#7

@Cryowatt I think you just need to switch it to /dev/fb0 if you are using hdmi, also don’t forget to increase the amount of gpu memory available to the device.


#8

So I’ve tried

devices:
  - "/dev/fb0:/dev/fb0"
  - "/dev/fb1:/dev/fb1"
  - "/dev/vchiq:/dev/vchiq"

and

devices:
  - "/dev/fb0:/dev/fb0"
  - "/dev/vchiq:/dev/vchiq"

and

devices:
  - "/dev/fb0:/dev/fb0"
  - "/dev/fb0:/dev/fb1"
  - "/dev/vchiq:/dev/vchiq"

No luck with any.

I currently have gpu_mem set to 396 (which seemed to work in the single-container deployment).