[cpp-linbuild] 01/03: Parameterize run_container command with optional args
John W. O'Brien
john at saltant.com
Tue Sep 9 12:28:35 UTC 2025
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=1406068001268d7833ff456d03cfe9a7616c2c3b
commit 1406068001268d7833ff456d03cfe9a7616c2c3b
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Tue Sep 9 10:58:23 2025 +0000
Parameterize run_container command with optional args
---
Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 0ff65e0..38f7171 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,9 @@
# <comp>_<plat> Build component <comp> on platform <plat>
#
# run_container_<plat> Run an interactive build environment container
-# for platform <plat>
+# for platform <plat>. Pass RUN_CONTAINER_ARGS
+# (default: "") as the arguments to the
+# RUN_CONTAINER_COMMAND (default: /bin/bash).
#
# Platform-specific notes:
#
@@ -47,6 +49,9 @@ SPECDIR=$(srcdir)common/SPECS
BASETAG=base
+RUN_CONTAINER_COMMAND=/bin/bash
+RUN_CONTAINER_ARGS=
+
# All components
@@ -275,7 +280,7 @@ run_container_$(1): $$($(1)_token) $(SOURCEDIR)/$$($(1)_DISTFILE)
-v $$($(1)_products):/opt/build/external/out:z \
-v $(srcdir)common:/opt/build/external/in:z \
shibboleth/$(1):$(BASETAG) \
- /bin/bash
+ $(RUN_CONTAINER_COMMAND) $(RUN_CONTAINER_ARGS)
endef
$(foreach platform,$(PLATFORMS),$(eval $(call run-container-platform,$(platform))))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list