qmk_firmware/util
Konstantin Đorđević 13ad650136 Add a better Docker build script + update Dockerfile (#4222)
* Add a Docker build script

* Add usage and error messages

* Add -r to reads

Thanks mechmerlin

* Add keyboard:keymap form, improve script

* Add target argument, change usage forms in script

* Add check for more than 3 args in keyboard:keymap:target form

* Change Docker base image to debian, use community repo

This matches what qmk_compiler uses (https://github.com/qmk/qmk_compiler/blob/master/Dockerfile#L1).

I've removed the maintainer as we now have a community build on Docker Hub (https://hub.docker.com/r/qmkfm/qmk_firmware). This Dockerfile will also be maintained by the community.

* Change build command format to keyboard:keymap

* Call make directly in container run command

* Simplify script, remove 3-arg form

* Add COPY to Dockerfile so images are usable in and of themselves

Also change WORKDIR from /qmk to /qmk_firmware

* Add USB pass-through for Linux and docker-machine hosts

* Read directly into variables instead of array

* Alphabetically sort dependencies in Dockerfile

* Set executable bit on util/docker_build.sh

* Update Docker docs

* Add warning about Docker on Windows

* Expand comment in docs

* Check docker-machine exit code instead of string

* Only match --help with whole arguments

* Make script POSIX-compliant

* Convert script indentation to tabs
2018-12-08 09:42:46 -08:00
..
1-setup-path-win.bat
2-setup-environment-win.bat
activate_msys2.sh
activate_wsl.sh
add-paths.bat
atmega32a_program.py
bootloader_at90usb128x_1_0_1.hex
bootloader_atmega16u4_1_0_1.hex
bootloader_atmega32u4_1_0_0.hex
docker_build.sh Add a better Docker build script + update Dockerfile (#4222) 2018-12-08 09:42:46 -08:00
drivers.txt
ELEVATE_LICENSE.md
elevate.exe
freebsd_install.sh
generate_internal_docs.sh
linux_install.sh
macos_install.sh
msys2_install.sh
new_keymap.sh
new_project.sh
pro_micro_ISP_B6_10.hex
qmk_install.sh
teensy_2.0_ISP_B0.hex
travis_build.sh
travis_compiled_push.sh
travis_docs.sh
travis_push.sh
Win_Check.bat
win_shared_install.sh
wsl_install.sh