第一步先安裝 windows docker
must have a 64-bit operating system running Windows 7 or higher
Make sure your CPU supports virtualization technology and virtualization support is enabled in BIOS and recognized by Windows. vt-D or AMD-D
For Windows 7Run the Microsoft® Hardware-Assisted Virtualization Detection Tool and follow the on-screen instructions.
For Windows users, you should run the 'Docker Quickstart Terminal'. All of the following commands will be run inside that window.
First, you need to download the Deviation build environment. From the shell, run:
docker pull deviationtx/deviation-docker
If you are a developer and have already checked out the Deviation GIT source, you can use:
docker create -it -v ~/devo_builds:/release -v <path to git>:/git --name deviation_build deviationtx/deviation-docker
NOTE: the <path to git> should be the directory above where Deviation is checked out. E.g. if Deviation is checked out to ~/git/deviation, <path to git> would be '~/git'
You can now start the Docker container, and start building Deviation.
To get started run:
docker start -i deviation_build
Building the Deviation Manual
The docker image is also capable of building the deviation manual. After creating the Docker container, start docekr and enter the Shell. run:
sudo /root/build.py –manual-prereqto install the necessary build environment
Next (still from the docker shell), run:
cd /git; git clone https://github.com/DeviationTX/deviation-manual
For instance, from within the docker shell and run:
cd deviation-manual; make TARGET=devo10 html pdf
ref : http://www.deviationtx.com/wiki/development/docker