home-assistant / developers.home-assistant

Developers website for Home Assistant.
https://developers.home-assistant.io
Other
312 stars 962 forks source link

Error in build script and documentation for using the homassistant/amd64-builder container #803

Open NickTechonomy opened 3 years ago

NickTechonomy commented 3 years ago

Hi There,

Describe the issue

I was trying to build a custom supervisor image to trace down an annoying bug in an unsupported configuration of the supervisor, but running in to an issue with the build-supervsior.sh build script

Steps to reproduce

  1. ... run build-supervisor.sh on macOS

output:

nick@Nicks-MacBook-Pro supervisor % sudo ./build.sh
[22:29:50] INFO: Setup crosscompiling feature
[22:29:50] INFO: Starting docker.
[22:29:50] INFO: Waiting for docker to initialize...
[22:30:11] FATAL: Timeout while waiting for docker to come up

How i fixed it:

I changed the build script to this

docker run --rm \
    --privileged \
    -v /var/run/docker.sock:/run/docker.sock \
    -v "$(pwd):/data" \
    homeassistant/amd64-builder:dev \

Note the /var/run/docker.sock, instead of /run/docker.sock

This is also more in line with the documentation here

I'm not sure the exact fix here, this might be a configuration thing for multiple platforms, but the script and documentation do not reflect this, so i'm reporting it here

System Information

System Information ``` Mac OSX, with docker desktop running the homeassistant/amd64-builder:dev container ```
remijn commented 3 years ago

I oopsied the wrong account for opening this issue, you can reach me on my personal account here