xref: /DragonOS/tools/build_in_docker.sh (revision cefb96b73f120f2a3c44ed4fc4955ca53838d366)
1docker rm -f dragonos-build || echo "No existed container"
2p=`pwd`
3cpu_count=$(cat /proc/cpuinfo |grep "processor"|wc -l)
4docker run --privileged=true --cap-add SYS_ADMIN --cap-add MKNOD -v $p:/data -v /dev:/dev --name dragonos-build -i dragonos/dragonos-dev:v1.0 bash << EOF
5cd /data
6bash run.sh --current_in_docker
7EOF