]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
docker_build.sh: Docker requires access to hosts devices (#5063)
authorRobin Hallabro-Kokko <44033026+hallabro@users.noreply.github.com>
Sat, 4 May 2019 00:41:39 +0000 (00:41 +0000)
committerDrashna Jaelre <drashna@live.com>
Sat, 4 May 2019 00:41:39 +0000 (17:41 -0700)
* docker_build.sh: Docker requires access to hosts devices

This also runs the container interactively which allows the user to
interupt the build with Ctrl-C.

* docker_build.sh: Mount /dev via $usb_args instead

util/docker_build.sh

index e7aeac8f3e5f08aa2c23822e8122e14efe93c1f9..c573ebcae2dcaf237739e7b4adbf6c8c01f3c522 100755 (executable)
@@ -35,7 +35,7 @@ else
 fi
 if [ -n "$target" ]; then
        if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then
-               usb_args="--privileged -v /dev/bus/usb:/dev/bus/usb"
+               usb_args="--privileged -v /dev:/dev"
        else
                echo "Error: target requires docker-machine to work on your platform" >&2
                echo "See http://gw.tnode.com/docker/docker-machine-with-usb-support-on-windows-macos" >&2