Skip to content

Commit d402c18

Browse files
authored
Added Windows Scripts
1 parent 43360a3 commit d402c18

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

tools/Docker/buildWindows.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

tools/Docker/runAUAVLinuxWindows.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)