1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
dockerfiles/renderjs
2014-12-12 21:18:45 +08:00
..
supervisor add renderjs 2014-12-01 21:19:52 +08:00
Dockerfile add renderjs 2014-12-01 21:19:52 +08:00
haproxy.cfg update renderjs 2014-12-12 21:18:45 +08:00
phantomjs add renderjs 2014-12-01 21:19:52 +08:00
README.md update renderjs 2014-12-12 21:18:45 +08:00
render.js add renderjs 2014-12-01 21:19:52 +08:00
restart.sh add renderjs 2014-12-01 21:19:52 +08:00

docker-renderjs

Dockerfile for building an image that runs webkit rendering service.

Building

$ docker build -t renderjs .

Running

$ docker run -d -p 1024:1024 -p 9001:9001 renderjs

Playing

# raw output
$ http :1024 url=http://datageek.info/

# json output
$ http :1024/json/ url=http://datageek.info/

# supervisor
$ firefox http://localhost:9001/

# haproxy
$ firefox http://localhost:1024/haproxy?stats