diff --git a/docker/docker.mk b/docker/docker.mk index c21aa51b..64831113 100644 --- a/docker/docker.mk +++ b/docker/docker.mk @@ -107,6 +107,16 @@ LIBNVIDIA_CONTAINER_TAG ?= $(LIB_TAG) --centos%: DOCKERFILE = $(CURDIR)/docker/Dockerfile.rpm-yum --centos8%: BASEIMAGE = quay.io/centos/centos:stream8 +# private fedora target +--fedora%: OS := fedora +--fedora%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1) +--fedora%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)-$(if $(LIBNVIDIA_CONTAINER_TAG),0.1.$(LIBNVIDIA_CONTAINER_TAG),1) +--fedora%: DOCKERFILE = $(CURDIR)/docker/Dockerfile.rpm-yum +--fedora%: CONFIG_TOML_SUFFIX := centos +# The fedora(35) base image has very slow performance when building aarch64 packages. +# Since our primary concern here is glibc versions, we use the older glibc version available in centos8. +--fedora35%: BASEIMAGE = quay.io/centos/centos:stream8 + # private amazonlinux target --amazonlinux%: OS := amazonlinux --amazonlinux%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)-$(if $(LIBNVIDIA_CONTAINER_TAG),0.1.$(LIBNVIDIA_CONTAINER_TAG),1) @@ -128,6 +138,7 @@ LIBNVIDIA_CONTAINER_TAG ?= $(LIB_TAG) --rhel%: DOCKERFILE = $(CURDIR)/docker/Dockerfile.rpm-yum --rhel8%: BASEIMAGE = quay.io/centos/centos:stream8 + # We allow the CONFIG_TOML_SUFFIX to be overridden. CONFIG_TOML_SUFFIX ?= $(OS)