1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/webkit
2015-01-28 16:02:31 +08:00
..
bin update monit 2014-12-30 11:31:19 +08:00
etc fix config 2015-01-28 16:02:31 +08:00
fonts fix font 2014-12-30 17:01:57 +08:00
includes add webkit 2014-12-24 19:30:14 +08:00
tests add webkit 2014-12-24 19:30:14 +08:00
client.js rename pageCapture to pageRender 2015-01-28 13:21:40 +08:00
Dockerfile fix font 2014-12-30 17:01:57 +08:00
frame.js add position to frameData 2015-01-19 22:08:57 +08:00
parser.js webkit render quality 2015-01-15 13:01:04 +08:00
README.md update doc 2014-12-29 19:48:37 +08:00
server.js webkit: png with 50% quality 2015-01-13 21:49:41 +08:00
utils.js add webkit 2014-12-24 19:30:14 +08:00

WebKit/PhantomJS

A simple web-service based on PhantomJS for rendering javascript-enabled website.

server

docker run -d --restart=always -p 80:80 -p 1024:1024 -p 2812:2812 -p 9001:9001 --name=webkit vimagick/webkit

client

http :1024 targetUrl=https://github.com/
http :1024 targetUrl=https://github.com/ loadImages:=true requestType=png

admin

# monit
firefox http://localhost:2812/
# supervisor
firefox http://localhost:9001/
# haproxy
firefox http://localhost:1024/haproxy?stats

issues

  • send back html+image at the same time