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:
committed by
MechMerlin
parent
cc146e32dc
commit
cd369b7107
@@ -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}"
|
||||
|
Reference in New Issue
Block a user