docker编译是root用户,导致不能在一个终端下载编译下的下载编译自动化

自动化脚本测试一章  git、shell、ubuntu等环境搭建类-CSDN博客

在一个ubuntu终端下,下载代码比如下面

repo init ...

repo sync -c -j9  &&  echo 11 > 11

下面在一个docker终端,执行下面脚本,当下载完成后,脚本监测到后开始编译

#/bin/bash

echo "0000"
while true
do
if [ -f "11" ];then
        echo "has file 11"
        break;
fi
echo "......."
sleep 120
done

echo "has file 11, ready make"
source build/envsetup.sh && lunch hqcos-userdebug && make -j8|tee log

猜你喜欢

转载自blog.csdn.net/yudelian/article/details/139924438