Has anyone yet created a Dockerfile that both hosts the webpagetest service as well as an agent? I think this would be really helpful. Didn’t want to duplicate efforts.
Not that I’m aware of. There is a server docker file here: webpagetest/docker/server at master · WPO-Foundation/webpagetest · GitHub but nobody has tried the client that I’m aware of.
I don’t think it’s possible right now because from the looks of it, Docker on Windows needs Windows 10 and the traffic-shaping doesn’t work on Windows 10 right now (working on it).
I’m also not up to speed enough on how isolated the containers are but I get the sense that they share driver stacks so the traffic-shaping may not work with containers and may require full VM’s.
What you actually can do by now is using the NodeJS Agent and run in on linux with a local Firefox.
This agent could be used via a Dockerfile with a vnc server, so there would be a simple nodejs agent running in a docker container on any linux host.