Run the following commands, and access to http://localhost:4000
sudo modprobe ifb numifbs=1
docker-compose up
This will run the wpt_server
and wpt_agent
instances.
Mac OS does not support network shaping.
Run the following command, and access to http://localhost:4000
docker-compose -f docker-compose.yml -f docker-compose-macos.yml up
Native Connection (No Traffic Shaping) will have to be used in order to work as there is no traffic shaping enabled.
Test results are saved in wpt_data directory.
Because everything runs into docker localhost is different. To access the localhost from your machine use:
http://host.docker.internal:{PORT}/
Another way is to add EXTRA_HOST to wpt.env
:
EXTRA_HOST=local.dev:10.8.10.11
The IP address is your local machine IP address.
docker-compose down
This will cause WPT to crash with (Test Error: net::ERR_CERT_AUTHORITY_INVALID)
error, because the local browser instance doesn't know your SSL files.
To overcome this check Ignore SSL Certificate Errors
under settings and run the test again.
At the moment as far as I know this doesn't work inside Docker. But you can use throttle to simulate slow network connections on Linux and Mac OS X.
NOT WORKING at the moment.
vagrant up
vagrant ssh
chmod +x /vagrant/bootstrap.sh
/vagrant/bootstrap.sh
# It may take long time to install a lot if software, please wait patiently!
localhost
Test_loc
exit
vagrant reload
Open http://localhost:8080/
docker-compose build --pull --force-rm --no-cache