debian-koji/devtools/containers
2021-12-06 12:17:29 +01:00
..
Dockerfile.centos6 devtools: updated Dockerfiles 2021-03-11 11:27:57 +01:00
Dockerfile.centos7 dev: use CentOS/Fedora registries for containers 2021-06-09 11:23:57 +02:00
Dockerfile.centos8 Pytest instead of nose in unittest 2021-12-06 12:17:29 +01:00
Dockerfile.f32 Pytest instead of nose in unittest 2021-12-06 12:17:29 +01:00
Dockerfile.f33 Pytest instead of nose in unittest 2021-12-06 12:17:29 +01:00
Dockerfile.f34 Pytest instead of nose in unittest 2021-12-06 12:17:29 +01:00
Dockerfile.rawhide Pytest instead of nose in unittest 2021-12-06 12:17:29 +01:00
README.md devtools: updated Dockerfiles 2021-03-11 11:27:57 +01:00

Dockerfiles for development

To facilitate in development - specifically, running tests, some Dockerfiles are provided:

To use them, taking fedora as an example:

docker build -t koji_test_fedora:32 --no-cache -f Dockerfile.f32
docker run --rm -v $PWD:/koji --name koji_test koji_test_fedora:32 bash -c "cd /koji && tox -e flake8,py3"

Or CentOS as an example:

docker build -t koji_test_centos:8 --no-cache -f Dockerfile.centos8
docker run --rm -v $PWD:/koji --name koji_test koji_test_centos:8 bash -c "cd /koji && tox -e py2"

When running with Podman and SELinux enabled, use the "--security-opt label=disable" option:

podman run --rm -v $PWD:/koji --security-opt label=disable --name koji_test koji_test_fedora:32 bash -c "cd /koji && ls -l /koji && tox -e flake8,py3"