Skip to content

Commit c4618ef

Browse files
saturley-hallpvijayakrish
authored andcommitted
build: Dockerfiles generated by build.py for RHEL require base image specification (#7970)
1 parent 6d3d98b commit c4618ef

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
@@ -1662,8 +1662,14 @@ def create_build_dockerfiles(
16621662
):
16631663
if "base" in images:
16641664
base_image = images["base"]
1665+
if target_platform() == "rhel":
1666+
print(
1667+
"warning: RHEL is not an officially supported target and you will probably experience errors attempting to build this container."
1668+
)
16651669
elif target_platform() == "windows":
16661670
base_image = "mcr.microsoft.com/dotnet/framework/sdk:4.8"
1671+
elif target_platform() == "rhel":
1672+
raise KeyError("A base image must be specified when targeting RHEL")
16671673
elif FLAGS.enable_gpu:
16681674
base_image = "nvcr.io/nvidia/tritonserver:{}-py3-min".format(
16691675
FLAGS.upstream_container_version

0 commit comments

Comments
 (0)