1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/webkit
2021-05-11 10:53:49 +08:00
..
bin strip phantomjs 2015-09-13 11:38:23 +08:00
etc
fonts
includes fix underscore.js 2021-05-11 10:53:49 +08:00
tests
client.js
Dockerfile fix lib dep 2015-02-03 18:39:38 +08:00
frame.js
parser.js
README.md
server.js
utils.js

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