mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-30 18:27:11 +08:00
Docker Provisioning: Install docker test servers on Windows 10 (x86_64)
Build and cache docker images to VirtualBox virtual machine. 1. Download and install the docker tool kits and Apple Bonjour 2. Deploy boot2docker image into VirtualBox via docker-machine commands 3. Use Git Bash to run the shared provisioning scripts 4. Print CPU features to verify that CI has enabled VT-X/AMD-v support 5. Disable Hyper-V from Windows 10 Pro/Enterprise editions Change-Id: I5520e4a28376aba14f880c077bd7b083be971f0a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
@@ -35,14 +35,18 @@
|
||||
|
||||
set -ex
|
||||
|
||||
case ${BASH_SOURCE[0]} in
|
||||
*/*) SERVER_PATH="${BASH_SOURCE[0]%/*}" ;;
|
||||
[ -x "$(command -v realpath)" ] && FILE=$(realpath ${BASH_SOURCE[0]}) || FILE=${BASH_SOURCE[0]}
|
||||
case $FILE in
|
||||
*/*) SERVER_PATH="${FILE%/*}" ;;
|
||||
*) SERVER_PATH="." ;;
|
||||
esac
|
||||
|
||||
# Create docker virtual machine (Boot2docker)
|
||||
case $1 in
|
||||
VMX) source "$SERVER_PATH/docker_machine.sh" ;;
|
||||
VMX) source "$SERVER_PATH/docker_machine.sh" "-d virtualbox" ;;
|
||||
Hyper-V)
|
||||
# The Hyper-v has been enabled in Windows 10. Disable checking the hardware virtualization.
|
||||
source "$SERVER_PATH/docker_machine.sh" "-d virtualbox --virtualbox-no-vtx-check" ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user