[cpp-linbuild] branch main updated: SSPCPP-995 Remove intermediate per-component builder images

John W. O'Brien john at saltant.com
Sat Oct 26 00:18:01 UTC 2024


This is an automated email from the git hooks/post-receive script.

obrienjw pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=a7718f536404de902eeb634df70561da9e09e8c0

The following commit(s) were added to refs/heads/main by this push:
     new a7718f5  SSPCPP-995 Remove intermediate per-component builder images
a7718f5 is described below

commit a7718f536404de902eeb634df70561da9e09e8c0
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Fri Oct 25 23:56:07 2024 +0000

    SSPCPP-995 Remove intermediate per-component builder images
---
 Makefile | 22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)

diff --git a/Makefile b/Makefile
index fda71f4..68dffc9 100644
--- a/Makefile
+++ b/Makefile
@@ -246,36 +246,18 @@ $(foreach platform,$(PLATFORMS),$(eval $(call prepare-platform,$(platform))))
 .PHONY: images
 images: $(foreach platform,$(PLATFORMS),$(platform)-image)
 
-# Build a docker image for each component/platform combination
-define build-docker-image-component-platform
-$(srcdir)os/$(2)/image/Dockerfile.$$($(1)_COMPNAME):
-	echo "FROM shibboleth/$(2):$$(BASETAG)" > $$@
-
-$(1)_$(2)_image_token = $$(srcdir).$(1)_$(2)_image
-$$($(1)_$(2)_image_token): $$($(2)_token) $(srcdir)os/$(2)/image/Dockerfile.$$($(1)_COMPNAME)
-	@echo "==> Building Docker image for $(1) on $(2)"
-	docker build --no-cache \
-		-t shibboleth/$(2):$($(1)_COMPNAME) \
-		-f os/$(2)/image/Dockerfile.$$($(1)_COMPNAME) \
-		os/$(2)/image
-	touch $$($(1)_$(2)_image_token)
-$$($(1)_COMPNAME)-$(2)-image: $$($(1)_$(2)_image_token)
-endef
-
-$(foreach platform,$(PLATFORMS),$(foreach component,$(COMPONENTS),$(eval $(call build-docker-image-component-platform,$(component),$(platform)))))
-
 
 # Build RPMs and SRPMs for each component on each platform
 define build-component-platform
 $(1)_$(2)_token = $(srcdir).$(1)_$(2)_products
-$$($(1)_$(2)_token): $$($(1)_$(2)_image_token) $(SOURCEDIR)/$$($(1)_DISTFILE) $(SPECDIR)/$$($(1)_COMPNAME).spec
+$$($(1)_$(2)_token): $$($(2)_token) $(SOURCEDIR)/$$($(1)_DISTFILE) $(SPECDIR)/$$($(1)_COMPNAME).spec
 	@echo "==> Sanity checking $(1) on $(2)"
 	grep -E "^Version:[[:space:]]+$$($(1)_VERSION)$$$$" $(SPECDIR)/$$($(1)_COMPNAME).spec
 	@echo "==> Building $(1) on $(2)"
 	docker run -it --rm \
 		-v $$($(2)_products):/opt/build/external/out:z \
 		-v $(srcdir)common:/opt/build/external/in:z \
-		shibboleth/$(2):$($(1)_COMPNAME) \
+		shibboleth/$(2):$(BASETAG) \
 		/bin/sh -e /opt/build/external/in/build.sh $($(1)_COMPNAME)
 	touch $$($(1)_$(2)_token)
 $$($(1)_COMPNAME)_$(2): $$($(1)_$(2)_token)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list