mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
Use a volume when running the unit tests instead of copying the source in the image
This commit is contained in:
@@ -4,9 +4,18 @@ 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.
|
||||
|
||||
To run the tests::
|
||||
To run the tests, you must first install and start Docker with::
|
||||
|
||||
$ sudo docker build -t mbs/test -f Dockerfile-tests . && sudo docker run mbs/test
|
||||
$ sudo dnf install docker
|
||||
$ sudo systemctl start docker
|
||||
|
||||
From the main git directory, build the Docker image with::
|
||||
|
||||
$ sudo docker build -t mbs/test -f docker/Dockerfile-tests .
|
||||
|
||||
Then run the tests with::
|
||||
|
||||
$ sudo docker run -t -v $PWD:/src:Z mbs/test
|
||||
|
||||
|
||||
Development
|
||||
|
||||
Reference in New Issue
Block a user