From 7db21b7385ebfbc9d831646c8298d0f0d29c9915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunor=20Csomort=C3=A1ni?= Date: Fri, 7 Jun 2019 12:48:58 +0200 Subject: [PATCH] Contributing: replace docker with podman MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recommend using podman instead of docker because: * one can spin up containers without sudo with podman; * docker in Fedora has a really old version, and probably will be depercated at some point. Signed-off-by: Hunor Csomortáni --- docs/CONTRIBUTING.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/CONTRIBUTING.rst b/docs/CONTRIBUTING.rst index 2da053c3..d9ea9a87 100644 --- a/docs/CONTRIBUTING.rst +++ b/docs/CONTRIBUTING.rst @@ -2,20 +2,19 @@ Running Tests ============= Since MBS requires Python dependencies that aren't available using PyPi (e.g. libsolv bindings), -there is a Docker image that can be used to run the code analysis and unit tests. +there is a container image that can be used to run the code analysis and unit tests. -To run the tests, you must first install and start Docker with:: +To run the tests, you must first install `podman` with:: - $ sudo dnf install docker - $ sudo systemctl start docker + $ sudo dnf install podman -From the main git directory, build the Docker image with:: +From the main git directory, build the container image with:: - $ sudo docker build -t mbs/test -f docker/Dockerfile-tests . + $ podman build -t mbs/test -f docker/Dockerfile-tests . Then run the tests with:: - $ sudo docker run -t --rm -v $PWD:/src:Z mbs/test + $ podman run -t --rm -v $PWD:/src:Z mbs/test Style Guide ===========