[cpp-linbuild] branch main updated: Implement convenience target to run interactive container
John W. O'Brien
john at saltant.com
Fri Feb 4 16:25:23 UTC 2022
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=b2dbbdb532ca5d4ae473ce542a76367fd26f12b2
The following commit(s) were added to refs/heads/main by this push:
new b2dbbdb Implement convenience target to run interactive container
b2dbbdb is described below
commit b2dbbdb532ca5d4ae473ce542a76367fd26f12b2
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Fri Feb 4 16:24:50 2022 +0000
Implement convenience target to run interactive container
---
Makefile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Makefile b/Makefile
index f1d5aa8..f3a866c 100644
--- a/Makefile
+++ b/Makefile
@@ -243,6 +243,20 @@ endef
$(foreach platform,$(PLATFORMS),$(foreach component,$(COMPONENTS),$(eval $(call build-component-platform,$(component),$(platform)))))
+# Run an interactive build environment container for each component on each platform
+define run-container-component-platform
+.PHONY: run_container_$($(1)_COMPNAME)_$(2)
+run_container_$($(1)_COMPNAME)_$(2): $$($(1)_$(2)_image_token) $(SOURCEDIR)/$$($(1)_DISTFILE)
+ mkdir -p $(srcdir)os/$(2)/products/{RPMS,SRPMS}
+ docker run -it --rm \
+ -v $(srcdir)os/$(2)/products:/opt/build/external/out:z \
+ -v $(srcdir)common:/opt/build/external/in:z \
+ shibboleth/$(2):$($(1)_COMPNAME) \
+ /bin/bash
+endef
+
+$(foreach platform,$(PLATFORMS),$(foreach component,$(COMPONENTS),$(eval $(call run-container-component-platform,$(component),$(platform)))))
+
# TODO:
# delete stale products on version bump
# add a clean target
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list