第一步先安裝 windows docker
https://docs.docker.com/engine/installation/windows/
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 7
Run the Microsoft® Hardware-Assisted Virtualization Detection Tool and follow the on-screen instructions.Installation
If you have VirtualBox running, you must shut it down before running the installer.
- Go to the Docker Toolbox page.
- Click the installer link to download.
- installs executables for the Docker tools in
C:\Program Files\Docker Toolbox
- install VirtualBox; or updates any existing installation
- adds a Docker Inc. folder to your program shortcuts
- updates your
PATH
environment variable
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'
Building Deviation
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-prereq
to install the necessary build environment
(右上角的SHELL 按下去)
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