[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 10/46] docker: allow "cc" command to run in user
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v3 10/46] docker: allow "cc" command to run in user context |
Date: |
Tue, 24 Apr 2018 16:23:29 +0100 |
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/docker/docker.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 59bce9f19a..37bfa98005 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -417,6 +417,8 @@ class CcCommand(SubCommand):
help="The docker image in which to run cc")
parser.add_argument("--cc", default="cc",
help="The compiler executable to call")
+ parser.add_argument("--user",
+ help="The user-id to run under")
parser.add_argument("--source-path", "-s", nargs="*", dest="paths",
help="""Extra paths to (ro) mount into container
for
reading sources""")
@@ -430,6 +432,8 @@ class CcCommand(SubCommand):
if args.paths:
for p in args.paths:
cmd += ["-v", "%s:%s:ro,z" % (p, p)]
+ if args.user:
+ cmd += ["-u", args.user]
cmd += [args.image, args.cc]
cmd += argv
return Docker().command("run", cmd, args.quiet)
--
2.17.0
- Re: [Qemu-devel] [PATCH v3 03/46] configure: add support for --cross-cc-FOO, (continued)
- [Qemu-devel] [PATCH v3 05/46] configure: allow user to specify --cross-cc-cflags-foo=, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 06/46] configure: set cross_cc_FOO for host compiler, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 04/46] configure: move i386_cc to cross_cc_i386, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 07/46] Makefile: Rename TARGET_DIRS to TARGET_LIST, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 09/46] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 11/46] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 08/46] docker: Add "cc" subcommand, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 10/46] docker: allow "cc" command to run in user context,
Alex Bennée <=
- [Qemu-devel] [PATCH v3 34/46] tests/tcg: enable building for ppc64, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 12/46] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 33/46] tests/tcg: enable building for s390x, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 23/46] tests/tcg/x86_64: add Makefile.target, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 21/46] tests/tcg/i386: fix test-i386-fprem, Alex Bennée, 2018/04/24