@@ -688,17 +688,17 @@ def onnxruntime_cmake_args(images, library_paths):
688688 )
689689
690690 if target_platform () == "windows" :
691- if "base " in images :
691+ if "buildbase " in images :
692692 cargs .append (
693693 cmake_backend_arg (
694- "onnxruntime" , "TRITON_BUILD_CONTAINER" , None , images ["base " ]
694+ "onnxruntime" , "TRITON_BUILD_CONTAINER" , None , images ["buildbase " ]
695695 )
696696 )
697697 else :
698- if "base " in images :
698+ if "buildbase " in images :
699699 cargs .append (
700700 cmake_backend_arg (
701- "onnxruntime" , "TRITON_BUILD_CONTAINER" , None , images ["base " ]
701+ "onnxruntime" , "TRITON_BUILD_CONTAINER" , None , images ["buildbase " ]
702702 )
703703 )
704704 else :
@@ -754,17 +754,17 @@ def openvino_cmake_args():
754754 )
755755 ]
756756 if target_platform () == "windows" :
757- if "base " in images :
757+ if "buildbase " in images :
758758 cargs .append (
759759 cmake_backend_arg (
760- "openvino" , "TRITON_BUILD_CONTAINER" , None , images ["base " ]
760+ "openvino" , "TRITON_BUILD_CONTAINER" , None , images ["buildbase " ]
761761 )
762762 )
763763 else :
764- if "base " in images :
764+ if "buildbase " in images :
765765 cargs .append (
766766 cmake_backend_arg (
767- "openvino" , "TRITON_BUILD_CONTAINER" , None , images ["base " ]
767+ "openvino" , "TRITON_BUILD_CONTAINER" , None , images ["buildbase " ]
768768 )
769769 )
770770 else :
@@ -801,9 +801,9 @@ def dali_cmake_args():
801801
802802def fil_cmake_args (images ):
803803 cargs = [cmake_backend_enable ("fil" , "TRITON_FIL_DOCKER_BUILD" , True )]
804- if "base " in images :
804+ if "buildbase " in images :
805805 cargs .append (
806- cmake_backend_arg ("fil" , "TRITON_BUILD_CONTAINER" , None , images ["base " ])
806+ cmake_backend_arg ("fil" , "TRITON_BUILD_CONTAINER" , None , images ["buildbase " ])
807807 )
808808 else :
809809 cargs .append (
@@ -2591,6 +2591,12 @@ def enable_all():
25912591 required = False ,
25922592 help = 'Use specified Docker image in build as <image-name>,<full-image-name>. <image-name> can be "base", "gpu-base", or "pytorch".' ,
25932593 )
2594+ parser .add_argument (
2595+ "--use-buildbase" ,
2596+ default = False ,
2597+ action = "store_true" ,
2598+ help = 'Use local temporary "buildbase" Docker image as "base" image to build backends' ,
2599+ )
25942600
25952601 parser .add_argument (
25962602 "--enable-all" ,
@@ -2945,6 +2951,11 @@ def enable_all():
29452951 )
29462952 log ('image "{}": "{}"' .format (parts [0 ], parts [1 ]))
29472953 images [parts [0 ]] = parts [1 ]
2954+ if FLAGS .use_buildbase :
2955+ images ["buildbase" ] = "tritonserver_buildbase"
2956+ else :
2957+ if "base" in images :
2958+ images ["buildbase" ] = images ["base" ]
29482959
29492960 # Initialize map of library paths for each backend.
29502961 library_paths = {}
0 commit comments