File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ gpu=
2+ usage=" bash build.sh [-h][-g n] -- builds the Docker image with source code and all needed libraries
3+
4+ Flags:
5+ -h, --help show this help text
6+ -g, --gpu compiles Nvidia GPU compatible version"
7+
8+ while [ " $1 " != " " ]; do
9+ case $1 in
10+ -g | --gpu ) shift
11+ gpu=1
12+ ;;
13+ -h | --help ) echo " $usage "
14+ exit
15+ ;;
16+ * ) echo " $usage "
17+ exit
18+ ;;
19+ esac
20+ shift
21+ done
22+ if [ " $gpu " = " 1" ]; then
23+ docker build -t auavlinux/nvidia -f build/Dockerfile.nvidia build/. --rm
24+ else
25+ docker build -t auavlinux -f build/Dockerfile build/. --rm
26+ fi
Original file line number Diff line number Diff line change 1+ gpu=
2+ usage=" bash runAUAVLinux.sh [-h][-g --no-gpu] -- runs a new Docker container from image
3+
4+ Flags:
5+ -h, --help show this help text
6+ -g, --gpu runs gpu compatible container
7+ --no-gpu runs gpu compatible container without gpu support"
8+ while [ " $1 " != " " ]; do
9+ case $1 in
10+ -g | --gpu ) shift
11+ gpu=1;
12+ ;;
13+ --no-gpu ) shift
14+ gpu=2;
15+ ;;
16+ -h | --help ) echo " $usage "
17+ exit
18+ ;;
19+ * ) echo " $usage "
20+ exit
21+ ;;
22+ esac
23+ shift
24+ done
25+ if [ " $gpu " = " 1" ]; then
26+ docker run -it -p 5117:5117/udp -p 12013:12013 auavlinux/nvidia
27+ else
28+ docker run -it -p 5117:5117/udp -p 12013:12013 auavlinux
29+ fi
You can’t perform that action at this time.
0 commit comments