/docker4dev

使用docker建立一个独立的用于开发的环境

Primary LanguageShell

docker4dev

使用docker建立一个独立的用于开发的环境

在此目录下直接执行setup [-选项]创建docker环境用于开发,具体用法如下:

usage: setup [-h] [-a ...] [-b BUILDDIR] [-c ...] [-d DOWNLOADS] [-k KERNEL]
             [-l KERNEL_OPTS] [-s SOURCEDIR] [-u UBOOT] [-v UBOOT_OPTS]
             [-t TOOLSCHAIN] [-p TOOLSCHAIN_OPTS]

optional arguments:

-h, --help            show this help message and exit  显示帮助信息
-a ..., --apps ...    All external paths of application directory 
                      加入-a选项,后面跟数个应用的目录(绝对地址),可以把
                      本地的应用目录挂载到/opt/uml/build/ 下面
-b BUILDDIR, --builddir BUILDDIR
                      Path of build directory (defaults to 'build')
                      用于开发或者build的目录,在本地的build目录下
-c ..., --command ...
                      Run build command directly and exit the builder
                      使用-c选项后面加入数个要执行的命令,可以直接运行,运行
                      结束后会退出docker
-d DOWNLOADS, --downloads DOWNLOADS
                      Path stored with the downloads, will be mounted as a
                      volume
                      预留
-k KERNEL, --kernel KERNEL
                      Path of the kernel source
                      使用-k选项 将sources目录下存在的kernel文件夹链接到
                      build文件夹下,注意-k后面可以跟当前目录下的相对路径
                      或者绝对路径。
-l KERNEL_OPTS, --kernel_opts KERNEL_OPTS
                      External path of the linux source
                      使用-l选项 将含有kernel文件夹的绝对路径挂载到externalsrc
                      然后再链接到build目录下
-s SOURCEDIR, --sourcedir SOURCEDIR
                      Path of source directory (defaults to 'sources')
                      当前目录下的sources文件夹
-u UBOOT, --uboot UBOOT
                      Path of the uboot source
                      使用-u选项 将sources目录下存在的uboot文件夹链接到
                      build文件夹下,注意-u后面可以跟当前目录下的相对路径
                      或者绝对路径。
-v UBOOT_OPTS, --uboot_opts UBOOT_OPTS
                      External path of the bootloader source
                      使用-v选项 将含有uboot文件夹的绝对路径挂载到externalsrc
                      然后再链接到build目录下
-t TOOLSCHAIN, --toolschain TOOLSCHAIN
                      Path of the toolschain source
                      使用-t选项 将toolschain目录下存在的交叉编译器的路径加入
                      到PATH,注意-t后面可以跟当前目录下的相对路径或者绝对路径。
-p TOOLSCHAIN_OPTS, --toolschain_opts TOOLSCHAIN_OPTS
                      External path of the toolschain source
                      使用-p选项 将含有交叉编译器的绝对路径挂载到toolschain/external
                      下,并加入到PATH