From 9affb8dab7700e638585ffb3cf19f1baf670eec8 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 10 Aug 2022 10:00:28 +0200 Subject: [PATCH] Add fedora35 package targets Signed-off-by: Evan Lezar --- docker/docker.mk | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/docker.mk b/docker/docker.mk index 9e100f96..d933015f 100644 --- a/docker/docker.mk +++ b/docker/docker.mk @@ -18,10 +18,10 @@ DIST_DIR ?= $(CURDIR)/dist # Supported OSs by architecture AMD64_TARGETS := ubuntu20.04 ubuntu18.04 ubuntu16.04 debian10 debian9 -X86_64_TARGETS := centos7 centos8 rhel7 rhel8 amazonlinux2 opensuse-leap15.1 +X86_64_TARGETS := fedora35 centos7 centos8 rhel7 rhel8 amazonlinux2 opensuse-leap15.1 PPC64LE_TARGETS := ubuntu18.04 ubuntu16.04 centos7 centos8 rhel7 rhel8 ARM64_TARGETS := ubuntu20.04 ubuntu18.04 -AARCH64_TARGETS := centos8 rhel8 amazonlinux2 +AARCH64_TARGETS := fedora35 centos8 rhel8 amazonlinux2 # By default run all native docker-based targets docker-native: @@ -145,6 +145,15 @@ RPM_TOOLKIT_REV = $(if $(TOOLKIT_TAG),0.1.$(TOOLKIT_TAG),1) --rhel%: ARTIFACTS_DIR = $(DIST_DIR)/rhel$(VERSION)/$(ARCH) --rhel8%: BASEIMAGE = quay.io/centos/centos:stream8 +# private fedora target (actually built on centos) +--fedora%: OS := centos +--fedora%: PKG_VERS = $(LIB_VERSION) +--fedora%: PKG_REV = $(RPM_PKG_REV) +--fedora%: MIN_TOOLKIT_PKG_VERSION = $(RPM_TOOLKIT_VERSION)-$(RPM_TOOLKIT_REV) +--fedora%: VERSION = $(patsubst fedora%-$(ARCH),%,$(TARGET_PLATFORM)) +--fedora%: ARTIFACTS_DIR = $(DIST_DIR)/fedora$(VERSION)/$(ARCH) +--fedora%: BASEIMAGE = quay.io/centos/centos:stream8 + PLATFORM_ARGS ?= --platform=linux/$(ARCH) ifneq ($(strip $(ADD_DOCKER_PLATFORM_ARGS)),) DOCKER_PLATFORM_ARGS = $(PLATFORM_ARGS) @@ -159,7 +168,7 @@ docker-build-%: --build-arg BASEIMAGE="$(BASEIMAGE)" \ --build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \ --build-arg TOOLKIT_VERSION="$(MIN_TOOLKIT_PKG_VERSION)" \ - --build-arg PKG_NAME="$(LIB_NAME)" \ + --build-arg PKG_NAME="$(LIB_NAME)" \ --build-arg PKG_VERS="$(PKG_VERS)" \ --build-arg PKG_REV="$(PKG_REV)" \ --tag $(BUILDIMAGE) \