# git
apt install git
# docker
https://docs.docker.com/engine/install/ubuntu/
# docker-compose
apt install docker-compose
Start webpagetest on private server via docker-compose and use cron to clear test results by schedule
repo in /opt/webpagetest
mv /opt/webpagetest/webpagetest.service /etc/systemd/system/webpagetest.service
sudo systemctl daemon-reload
sudo systemctl start webpagetest.service
sudo systemctl enable webpagetest.service
sudo systemctl status webpagetest.service
sudo chown -R www-data /tmp/wpt_results
http://<IP>/install/
5 2 * * * find /tmp/wpt_results -type f -mtime +62 -exec rm -f {} \;
5 3 * * * find /tmp/wpt_results -type d -empty -mtime +62 -exec rmdir {} \;