This project was created to learn with a practical example of the CI/CD process. The website is basic with simple text and an image, however it makes for a good base to learn the process.
The following build script, removes any docker containers and then builds the website docker container, it then runs it on port 82, creates a display and then runs the python test, one complete it cleans up.
sudo docker rm -f $(sudo docker ps -a -q)
sudo docker build /home/vagrant/projects/website/. -t test
sudo docker run -it -p 82:80 -d test
export DISPLAY=:99
Xvfb :99 -ac -screen 0 1280x1024x24 &
python3 testsite.py
killall Xvfb
64839f0768b66d38aa0aa3ca0fec77fc9ab5c82e