Skip to content

Commit db6b3a3

Browse files
build: Dockerfiles generated by build.py for RHEL require base image specification (#7970)
1 parent 4ef346c commit db6b3a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,14 @@ def create_build_dockerfiles(
16431643
):
16441644
if "base" in images:
16451645
base_image = images["base"]
1646+
if target_platform() == "rhel":
1647+
print(
1648+
"warning: RHEL is not an officially supported target and you will probably experience errors attempting to build this container."
1649+
)
16461650
elif target_platform() == "windows":
16471651
base_image = "mcr.microsoft.com/dotnet/framework/sdk:4.8"
1652+
elif target_platform() == "rhel":
1653+
raise KeyError("A base image must be specified when targeting RHEL")
16481654
elif FLAGS.enable_gpu:
16491655
base_image = "nvcr.io/nvidia/tritonserver:{}-py3-min".format(
16501656
FLAGS.upstream_container_version

0 commit comments

Comments
 (0)