From 9b90836595a3551194915addbbd76834566ac119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunor=20Csomort=C3=A1ni?= Date: Fri, 7 Jun 2019 13:02:00 +0200 Subject: [PATCH] Document using images from Quay.io for testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hunor Csomortáni --- docs/CONTRIBUTING.rst | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/CONTRIBUTING.rst b/docs/CONTRIBUTING.rst index d9ea9a87..37b799ab 100644 --- a/docs/CONTRIBUTING.rst +++ b/docs/CONTRIBUTING.rst @@ -2,19 +2,27 @@ Running Tests ============= Since MBS requires Python dependencies that aren't available using PyPi (e.g. libsolv bindings), -there is a container image that can be used to run the code analysis and unit tests. +there are container images (based on CentOS and Fedora) that can be used to run the code analysis and unit tests. To run the tests, you must first install `podman` with:: $ sudo dnf install podman -From the main git directory, build the container image with:: +From the repo root, run the tests with:: - $ podman build -t mbs/test -f docker/Dockerfile-tests . + $ podman run -t --rm -v $PWD:/src:Z quay.io/factory2/mbs-test-centos -Then run the tests with:: +To run the tests with Python 3 use the image based on Fedora:: - $ podman run -t --rm -v $PWD:/src:Z mbs/test + $ podman run -t --rm -v $PWD:/src:Z quay.io/factory2/mbs-test-fedora + +If you need to build the container image locally use:: + + $ podman build -t mbs-test-centos -f docker/Dockerfile-tests . + +or:: + + $ podman build -t mbs-test-fedora -f docker/Dockerfile-tests-py3 . Style Guide ===========