qemu-patch-raspberry4/tests/docker
Marc-André Lureau 9459f75413 docker.py: add podman support
Add a --engine option to select either docker, podman or auto.

Among other advantages, podman allows to run rootless & daemonless
containers, fortunately sharing compatible CLI with docker.

With current podman, we have to use a uidmap trick in order to be able
to rw-share the ccache directory with the container user.

With a user 1000, the default mapping is:                                                                                                                                                                         1000 (host) -> 0 (container).
So write access to /var/tmp/ccache ends will end with permission
denied error.

With "--uidmap 1000:0:1 --uidmap 0:1:1000", the mapping is:
1000 (host) -> 0 (container, 1st namespace) -> 1000 (container, 2nd namespace).
(the rest is mumbo jumbo to avoid holes in the range of UIDs)

A future podman version may have an option such as --userns-keep-uid.
Thanks to Debarshi Ray <rishi@redhat.com> for the help!

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2019-08-22 17:30:25 +04:00
..
dockerfiles tests/docker: Refresh APT cache before installing new packages on Debian 2019-07-23 17:19:11 +01:00
common.rc docker: gracefully skip check_qemu 2018-07-24 11:45:25 +01:00
docker.py docker.py: add podman support 2019-08-22 17:30:25 +04:00
Makefile.include docker.py: add --run-as-current-user 2019-08-22 17:30:25 +04:00
run tests/docker: invoke the DEBUG shell with --noprofile/--norc 2019-07-23 15:53:25 +01:00
test-block docker: test-block: Don't continue if build fails 2017-09-29 11:14:15 +08:00
test-build docker: add installation to build tests 2017-09-29 11:14:14 +08:00
test-clang docker: move make check into check_qemu helper 2018-07-24 11:45:25 +01:00
test-debug docker: move make check into check_qemu helper 2018-07-24 11:45:25 +01:00
test-full docker: move make check into check_qemu helper 2018-07-24 11:45:25 +01:00
test-mingw tests/docker: Let the test-mingw test generate a NSIS installer 2019-07-23 15:53:25 +01:00
test-misc tests/docker: add test-misc for building tools & docs 2019-07-23 15:53:25 +01:00
test-quick docker: move make check into check_qemu helper 2018-07-24 11:45:25 +01:00
test-unit docker: add test-unit runner 2018-07-24 11:45:25 +01:00
travis docker: Fix travis script unable to find source dir 2019-03-25 10:35:42 +00:00
travis.py docker: Fix travis.py parser and misc change 2019-03-25 10:35:42 +00:00