Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with docker build on raspberry pi #17

Open
jritsema opened this issue Jan 1, 2017 · 3 comments
Open

Issues with docker build on raspberry pi #17

jritsema opened this issue Jan 1, 2017 · 3 comments

Comments

@jritsema
Copy link

jritsema commented Jan 1, 2017

Fyi...just tried out your project on raspberry pi and got the following error after running the built docker image...

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
sed: can't read /etc/avahi/avahi-daemon.conf: No such file or directory
/root/run.sh: line 5: dbus-daemon: command not found
/root/run.sh: line 6: avahi-daemon: command not found
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Camera.js:28
  let options = {
  ^^^
SyntaxError: Unexpected strict mode reserved word
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/index.js:3:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

...looks like the Dockerfile is installing an older version of nodejs.

@jritsema jritsema changed the title Issues with docker build Issues with docker build on raspberry pi Jan 1, 2017
@mverzakov
Copy link

Have the same issue.

@jritsema
Copy link
Author

Hey @mverzakov I ended up making my own raspberry pi / arm-specific version in case it helps.

https://github.com/jritsema/rpi-homebridge

@mverzakov
Copy link

Wow! @jritsema, Thanks! It works amazing. Now I can switch off the lights by asking Siri!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants