]> git.proxmox.com Git - mirror_qemu.git/commit
tests: Add utilities for docker testing
authorFam Zheng <famz@redhat.com>
Wed, 1 Jun 2016 04:25:14 +0000 (12:25 +0800)
committerFam Zheng <famz@redhat.com>
Wed, 1 Jun 2016 09:25:50 +0000 (17:25 +0800)
commit4485b04be9af47e3c6beed47ce4277c23bd3edea
treed2d7a07b3a4cf2a23c00c39d91e5511ca5fd6b86
parent500acc9c410bcea17148a1072e323c08d12e6a6b
tests: Add utilities for docker testing

docker.py is added with a number of useful subcommands to manager docker
images and instances for QEMU docker testing. Subcommands are:

run: A wrapper of "docker run" (or "sudo -n docker run" if necessary),
which takes care of killing and removing the running container at
SIGINT.

clean: Tear down all the containers including inactive ones that are
started by docker_run.

build: Compare an image from given dockerfile and rebuild it if they're
different.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1464755128-32490-2-git-send-email-famz@redhat.com
tests/docker/docker.py [new file with mode: 0755]