-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.sh
executable file
·39 lines (32 loc) · 1.19 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "********************************************************************************"
echo ""
echo "Setting up the host."
echo ""
echo "********************************************************************************"
cd setup_host
./basics.sh
./install-nvidia-drivers.sh
./install-nvidia-docker2.sh
./add_xhost.sh
cd ..
echo "********************************************************************************"
echo ""
echo "Creating the docker images:"
echo ""
echo "1. openuav:base-cuda-10.2-ubuntu18.04"
echo ""
echo "2. openuav:ros-cuda-10.2-ubuntu18.04"
echo ""
echo "3. openuav:px4-cuda-10.2-ubuntu18.04"
echo ""
echo "********************************************************************************"
cd autonomous_sys_build/
docker build -f Dockerfile.base -t openuav:base-cuda-10.2-ubuntu18.04 .
docker build -f Dockerfile.ros -t openuav:ros-cuda-10.2-ubuntu18.04 .
docker build -f Dockerfile.px4 -t openuav:px4-cuda-10.2-ubuntu18.04 .
echo "********************************************************************************"
echo ""
echo "All done. Now you can run the container by running run.sh."
echo ""
echo "********************************************************************************"