-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add document to explain how setup build environment with docker
- Loading branch information
Showing
3 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
使用docker快速搭建开发环境 | ||
============================ | ||
|
||
1. pull docker image | ||
|
||
``` | ||
# docker pull pureflash/pfs-dev:1.6 | ||
``` | ||
|
||
如果这个镜像拉取失败,可以从百度网盘下载:https://pan.baidu.com/s/1nGYIpP-WFOUXxv3vfQwPxQ?pwd=4564 | ||
然后导入: | ||
``` | ||
# gunzip pfs-dev.tar.gz | ||
# docker load < pfs-dev.tar | ||
``` | ||
|
||
2. check out code | ||
``` | ||
# mkdir ~/pf && cd ~/pf | ||
# git clone https://gitee.com/cocalele/PureFlash.git | ||
# set PFHOME=$(pwd)/PureFlash | ||
# cd PureFlash | ||
# git submodule init | ||
# git submodule update | ||
# cd .. #to pf again | ||
# git https://gitee.com/cocalele/jconductor.git | ||
``` | ||
|
||
3. run docker | ||
``` | ||
# docker run -ti --ulimit core=-1 --privileged --hostname pfs-d --net pfnet --ip 172.1.1.2 --rm -v ~/pf:/root/pf --name pfs-d -e TZ=Asia/Shanghai pureflash/pfs-dev:1.6 /bin/bash | ||
``` | ||
上面命令里的-v ~/pf:/root/pf 把刚才的源代码目录mount到了容器里面的/root/pf目录上。然后就可以参照build_and_run.txt文档里面的cmake, ant步骤分别编译PureFlash和jconductor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters