Balena Browser share device uuid with server

Hi all,

We would like to be able to share the BALENA_DEVICE_UUID with our server.
We tried to achieve this by setting the user-agent with the variable in docker-compose.yml, but Balena does not substitute vars like docker-compose would normally do.

See our code here:

version: '2.4'

services:
  browser:
    image: bh.cr/balenalabs/browser-amd64
    privileged: true
    environment:
      EXTRA_FLAGS: --user-agent=FlowStation-${BALENA_DEVICE_UUID:unknown} --guest --allow-running-insecure-content
      SHOW_CURSOR: '1'
      KIOSK: '1'
      LAUNCH_URL: http://requestbin.webengage.org/redacted

Hi,

We have solved the problem.
Here is our solution:

version: '2.4'

services:
  browser:
    image: bh.cr/balenalabs/browser-amd64
    privileged: true
    environment:
      SHOW_CURSOR: '1'
      KIOSK: '1'
    command:
      - bash
      - -c
      - |
        export EXTRA_FLAGS="--user-agent=FlowStation-$BALENA_DEVICE_UUID --guest --allow-running-insecure-content"
        /usr/src/app/start.sh