It meant to make it easy to configure and run tempest against an existing cloud.
Note: If you already have the image use the following to get the latest build
$ sudo docker pull itzikb/docker-tempest
Docker should be installed and running. To install it run(Fedora):
$ sudo dnf -y install docker && sudo systemctl start docker && sudo systemctl enable docker
or For other RHEL based distros:
$ sudo yum -y install docker && sudo systemctl start docker && sudo systemctl enable docker
Before running you need to have a directory with overcloudrc file and set the SELinux file context.
For example:
$ sudo chcon -Rt svirt_sandbox_file_t /home/stack
To use it run the following (Here overcloudrc file is under /home/stack):
$ sudo docker run -it --name mytempest -v /home/stack:/env itzikb/docker-tempest /bin/bash
If you need to run the other_tempest_config.sh script (for now just adding lbaasv2 extenstion) run as follows:
$ sudo docker run -it --name mytempest -e OTHER_CONFIG=/home/centos/scripts/other_tempest_config.sh -v /home/stack:/env itzikb/docker-tempest /bin/bash
Inside the container run
$ sudo ~/scripts/run_tempest.sh
$ source ../bin/activate
$ testr list-tests
itzikb/docker-tempest is the docker image to use (don't change)
You can access the container by running
$ sudo docker exec -it <container-name> /bin/bash
You can see all the containers by running
$ sudo docker ps -a