Re: [Qemu-devel] [RFC PATCH] tests/docker: add basic user mapping support

2017-01-17 Thread Fam Zheng
On Tue, 01/17 11:19, Alex Bennée wrote: > >> +if args.user: > >> +uid = os.getuid() > >> +uname = getpwuid(uid).pw_name > >> +scriptlet = docker_dir+"/setup_user.sh" > >> + > >> +# write scriptlet > >> +setu

Re: [Qemu-devel] [RFC PATCH] tests/docker: add basic user mapping support

2017-01-17 Thread Alex Bennée
Fam Zheng writes: > On Tue, 12/13 13:22, Alex Bennée wrote: >> Currently all docker builds are done by exporting a tarball to the >> docker container and running the build as the containers root user. >> Other use cases are possible however and it is possible to map a part >> of users file-syste

Re: [Qemu-devel] [RFC PATCH] tests/docker: add basic user mapping support

2017-01-17 Thread Fam Zheng
On Tue, 12/13 13:22, Alex Bennée wrote: > Currently all docker builds are done by exporting a tarball to the > docker container and running the build as the containers root user. > Other use cases are possible however and it is possible to map a part > of users file-system to the container. This is

[Qemu-devel] [RFC PATCH] tests/docker: add basic user mapping support

2016-12-13 Thread Alex Bennée
Currently all docker builds are done by exporting a tarball to the docker container and running the build as the containers root user. Other use cases are possible however and it is possible to map a part of users file-system to the container. This is useful for example for doing cross-builds of ar