docker_build.sh: Run container in interactive mode (#5088)

* docker_build.sh: Run container in interactive mode

* Add message about QMK Toolbox

* Update Docker docs
This commit is contained in:
Konstantin Đorđević authored and MechMerlin committed 2019-02-15 06:46:42 -08:00
1 parent cc146e32dc
commit cd369b7107
2 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -39,11 +39,12 @@ if [ -n "$target" ]; then
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
echo "Consider flashing with QMK Toolbox (https://github.com/qmk/qmk_toolbox) instead" >&2
exit 3
fi
fi
dir=$(pwd -W 2>/dev/null) || dir=$PWD # Use Windows path if on Windows
# Run container and build firmware
docker run --rm $usb_args -v "$dir":/qmk_firmware qmkfm/qmk_firmware \
docker run --rm -it $usb_args -v "$dir":/qmk_firmware qmkfm/qmk_firmware \
make "$keyboard${keymap:+:$keymap}${target:+:$target}"