Commit a5eaaa9 1 parent cce6d37 commit a5eaaa9 Copy full SHA for a5eaaa9
File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,7 @@ Usage: ./dev_container build [options]
484
484
--docker_file : path to Dockerfile to use for building container.
485
485
--img : Specify fully qualified container name
486
486
--verbose : Print variables passed to docker build command
487
+ --no-cache : Do not use cache when building the image
487
488
'
488
489
}
489
490
@@ -496,6 +497,7 @@ build() {
496
497
local img=$( get_default_img)
497
498
local compute_capacity=$( get_compute_capacity)
498
499
local print_verbose=0
500
+ local no_cache=
499
501
500
502
# Check if buildx exists
501
503
if ! $( docker buildx version & > /dev/null) ; then
@@ -538,6 +540,10 @@ build() {
538
540
exit 1
539
541
fi
540
542
;;
543
+ --no-cache)
544
+ no_cache=" --no-cache"
545
+ shift
546
+ ;;
541
547
--verbose)
542
548
print_verbose=1
543
549
shift
@@ -566,6 +572,7 @@ build() {
566
572
--build-arg GPU_TYPE=${gpu_type} \
567
573
--build-arg COMPUTE_CAPACITY=${compute_capacity} \
568
574
--network=host \
575
+ ${no_cache} \
569
576
-f ${docker_file_path} \
570
577
-t ${img} \
571
578
${HOLOHUB_ROOT}
You can’t perform that action at this time.
0 commit comments