debian-koji/devtools/containers
Ken Dreyer dee88a1767 devtools: add instructions for CentOS, podman, and SELinux
Document how to run the CentOS container, and mention the
"--security-opt label=disable" setting when running podman with SELinux
in enforcing mode.
2020-09-08 16:20:19 +02:00
..
centos rpm-py-installer: Download binaries 2020-09-08 16:20:19 +02:00
fedora rpm-py-installer: Download binaries 2020-09-08 16:20:19 +02:00
README.md devtools: add instructions for CentOS, podman, and SELinux 2020-09-08 16:20:19 +02:00

Dockerfiles for development

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

To use them, taking fedora as an example:

docker build -t koji_test_fedora:latest --no-cache ./devtools/containers/fedora
docker run --rm -v $PWD:/koji --name koji_test koji_test_fedora:latest bash -c "cd /koji && tox -e flake8,py3"

Or CentOS as an example:

docker build -t koji_test_centos:latest --no-cache ./devtools/containers/centos
docker run --rm -v $PWD:/koji --name koji_test koji_test_centos:latest 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:latest bash -c "cd /koji && ls -l /koji && tox -e flake8,py3"