WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

Help building 0.12 #2460

Closed trentmillar closed 4 years ago

trentmillar commented 4 years ago

I tried following, https://github.com/mozilla-iot/wiki/wiki#the-new-way, It looks like the build script is linux specific so I followed these steps to build the gateway,

and the output

cp: error reading '/bin/../proc/1/task/1/personality': Operation not permitted
cp: error reading '/bin/../proc/1/task/1/syscall': Operation not permitted
cp: cannot open '/bin/../proc/1/task/1/mem' for reading: Permission denied
cp: error reading '/bin/../proc/1/task/1/clear_refs': Invalid argument

Clearly I'm missing something...maybe only runs on raspbian?

Any insight would be appreciated.

mrstegeman commented 4 years ago

The instructions you linked to are specifically for building a full Raspbian image, which is probably not what you want. You have a few options here.

  1. To build the gateway manually on Linux or macOS, you can walk through the README, which has instructions for the whole process.
  2. If you want a minimal Docker setup, with the bare minimum dependencies, you can build against this Dockerfile.
  3. If you want a full Docker setup, you can use our prebuilt image or build it yourself, using this Dockerfile.