Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

Commit 68b81a2

Browse files
author
Evan Lezar
committed
Merge branch 'add-fedora35' into 'main'
Add fedora35 package targets See merge request nvidia/container-toolkit/container-runtime!77
2 parents d2bb9d0 + 9affb8d commit 68b81a2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docker/docker.mk

+12-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ DIST_DIR ?= $(CURDIR)/dist
1818

1919
# Supported OSs by architecture
2020
AMD64_TARGETS := ubuntu20.04 ubuntu18.04 ubuntu16.04 debian10 debian9
21-
X86_64_TARGETS := centos7 centos8 rhel7 rhel8 amazonlinux2 opensuse-leap15.1
21+
X86_64_TARGETS := fedora35 centos7 centos8 rhel7 rhel8 amazonlinux2 opensuse-leap15.1
2222
PPC64LE_TARGETS := ubuntu18.04 ubuntu16.04 centos7 centos8 rhel7 rhel8
2323
ARM64_TARGETS := ubuntu20.04 ubuntu18.04
24-
AARCH64_TARGETS := centos8 rhel8 amazonlinux2
24+
AARCH64_TARGETS := fedora35 centos8 rhel8 amazonlinux2
2525

2626
# By default run all native docker-based targets
2727
docker-native:
@@ -145,6 +145,15 @@ RPM_TOOLKIT_REV = $(if $(TOOLKIT_TAG),0.1.$(TOOLKIT_TAG),1)
145145
--rhel%: ARTIFACTS_DIR = $(DIST_DIR)/rhel$(VERSION)/$(ARCH)
146146
--rhel8%: BASEIMAGE = quay.io/centos/centos:stream8
147147

148+
# private fedora target (actually built on centos)
149+
--fedora%: OS := centos
150+
--fedora%: PKG_VERS = $(LIB_VERSION)
151+
--fedora%: PKG_REV = $(RPM_PKG_REV)
152+
--fedora%: MIN_TOOLKIT_PKG_VERSION = $(RPM_TOOLKIT_VERSION)-$(RPM_TOOLKIT_REV)
153+
--fedora%: VERSION = $(patsubst fedora%-$(ARCH),%,$(TARGET_PLATFORM))
154+
--fedora%: ARTIFACTS_DIR = $(DIST_DIR)/fedora$(VERSION)/$(ARCH)
155+
--fedora%: BASEIMAGE = quay.io/centos/centos:stream8
156+
148157
PLATFORM_ARGS ?= --platform=linux/$(ARCH)
149158
ifneq ($(strip $(ADD_DOCKER_PLATFORM_ARGS)),)
150159
DOCKER_PLATFORM_ARGS = $(PLATFORM_ARGS)
@@ -159,7 +168,7 @@ docker-build-%:
159168
--build-arg BASEIMAGE="$(BASEIMAGE)" \
160169
--build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \
161170
--build-arg TOOLKIT_VERSION="$(MIN_TOOLKIT_PKG_VERSION)" \
162-
--build-arg PKG_NAME="$(LIB_NAME)" \
171+
--build-arg PKG_NAME="$(LIB_NAME)" \
163172
--build-arg PKG_VERS="$(PKG_VERS)" \
164173
--build-arg PKG_REV="$(PKG_REV)" \
165174
--tag $(BUILDIMAGE) \

0 commit comments

Comments
 (0)