xref: /DragonOS/tools/build_in_docker.sh (revision 7087e9fbc1e993bdfa83c5a4bc294723beec29f0)
1docker rm -f dragonos-build || echo "No existed container"
2p=`pwd`
3cpu_count=$(cat /proc/cpuinfo |grep "processor"|wc -l)
4docker run --rm --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