~ruther/qmk_firmware

e73587cfd08b2bd73987e7f762194079875df93a — Robin Hallabro-Kokko 6 years ago 997bafc
docker_build.sh: Docker requires access to hosts devices (#5063)

* 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
1 files changed, 1 insertions(+), 1 deletions(-)

M util/docker_build.sh
M util/docker_build.sh => util/docker_build.sh +1 -1
@@ 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