- Launch WebPagetest by Docker
- Because the containers created by raw images return incorrect results (can't get results)
- Detail is below, the article at
Reference
- Detail is below, the article at
- Build docker images
- server
- agent
- Run docker containers
- server
- agent
- Access to WebPagetest!
- If containers remain,
docker run
will fail so you must remove containers.
$ ./build_and_run.sh
$ docker build -t local-wptserver ./server
$ docker build -t local-wptagent ./agent
$ docker run -d -p 4000:80 --name local-wptserver local-wptserver
$ docker run -d -p 4001:80 --name local-wptagent --network="host" -e "SERVER_URL=http://localhost:4000/work/" -e "LOCATION=Test" local-wptagent