4 Star 29 Fork 11

cocalele / PureFlash

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-based-develope-env.txt 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
使用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
C
1
https://gitee.com/cocalele/PureFlash.git
git@gitee.com:cocalele/PureFlash.git
cocalele
PureFlash
PureFlash
master

搜索帮助