File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ print_help() {
11
11
echo " --no-cuda Disable CUDA support"
12
12
echo " --platform Specify the platform (default: current platform)"
13
13
echo " --devel-only Build devel image only"
14
+ echo " --target Specify the target image"
14
15
echo " "
15
16
echo " Note: The --platform option should be one of 'linux/amd64' or 'linux/arm64'."
16
17
}
@@ -36,6 +37,10 @@ parse_arguments() {
36
37
--devel-only)
37
38
option_devel_only=true
38
39
;;
40
+ --target)
41
+ option_target=" $2 "
42
+ shift
43
+ ;;
39
44
* )
40
45
echo " Unknown option: $1 "
41
46
print_help
@@ -58,10 +63,14 @@ set_cuda_options() {
58
63
59
64
# Set build options
60
65
set_build_options () {
61
- if [ " $option_devel_only " = " true " ]; then
62
- target=" universe-devel "
66
+ if [ -n " $option_target " ]; then
67
+ target=" $option_target "
63
68
else
64
- target=" universe"
69
+ if [ " $option_devel_only " = " true" ]; then
70
+ target=" universe-devel"
71
+ else
72
+ target=" universe"
73
+ fi
65
74
fi
66
75
}
67
76
You can’t perform that action at this time.
0 commit comments