WebPagetest Forums
Dockerfile for all in one host? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Dockerfile for all in one host? (/showthread.php?tid=14475)

Dockerfile for all in one host? - mailchimpbob - 08-24-2016 11:56 PM

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.

RE: Dockerfile for all in one host? - pmeenan - 08-31-2016 09:58 PM

Not that I'm aware of. There is a server docker file here: https://github.com/WPO-Foundation/webpagetest/tree/master/docker/server 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.

RE: Dockerfile for all in one host? - sburnicki - 10-12-2016 01:01 AM

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.