forked from externpro/externpro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.gpu.sh
More file actions
executable file
·50 lines (50 loc) · 899 Bytes
/
compose.gpu.sh
File metadata and controls
executable file
·50 lines (50 loc) · 899 Bytes
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
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
cd "$( dirname "$0" )"
source ./.devcontainer/funcs.sh
function usage
{
echo "`basename -- $0` usage:"
echo " -h display this help message"
echo " run the build container (no switches)"
echo " -b build docker image(s)"
echo " -g GPU container"
}
BPROIMG=rocky85-pin
if [ $# -eq 0 ]; then
buildreq
init
docker compose --profile pbld build
docker compose run --rm bld
deinit
exit 0
fi
while getopts "bgh" opt
do
case ${opt} in
b )
buildreq
init
docker compose --profile pbld --profile pgpu build
deinit
exit 0
;;
g )
BPROIMG=rocky85-pdv
gpureq
buildreq
init
docker compose --profile pgpu build
docker compose run --rm gpu
deinit
exit 0
;;
h )
usage
exit 0
;;
\? )
usage
exit 0
;;
esac
done