[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/56] docker: allow "cc" command to run in user cont
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 07/56] docker: allow "cc" command to run in user context |
Date: |
Tue, 19 Jun 2018 16:43:46 +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>
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 663dfcba4b..c83fd89985 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -418,6 +418,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""")
@@ -431,6 +433,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.1
- [Qemu-devel] [PULL 00/56] add check-tcg and associated machinery, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 04/56] configure: set cross_cc_FOO for host compiler, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 01/56] configure: add support for --cross-cc-FOO, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 03/56] configure: allow user to specify --cross-cc-cflags-foo=, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 05/56] docker: Add "cc" subcommand, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 07/56] docker: allow "cc" command to run in user context,
Alex Bennée <=
- [Qemu-devel] [PULL 08/56] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 02/56] configure: move i386_cc to cross_cc_i386, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 06/56] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 09/56] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 16/56] tests/tcg/i386: Build fix for hello-i386, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 10/56] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 13/56] tests/tcg/multiarch: move most output to stdout, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 37/56] tests/tcg: enable building for sh4, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 14/56] tests/tcg: move i386 specific tests into subdir, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 17/56] tests/tcg/i386: fix test-i386, Alex Bennée, 2018/06/19