Public | Automated Build

Last pushed: 3 months ago
Short Description
bot render with chrome
Full Description

bot-render

A Docker container which runs headless Chrome and renders web pages on the fly.

Dependencies

This project requires Node 7+ and Docker (installation instructions).

Installing

Install node dependencies using:

npm install

Install Chrome:

apt-get install google-chrome-beta

Running locally

With a local instance of Chrome Beta installed, you can start the server locally:

npm start

To test a rendering, send a request:

http://localhost:3000/?url=https://dynamic-meta.appspot.com

Docker

After installing docker, build the docker image:

docker build -t bot-render . --no-cache=true

Start a container with the built image:

docker run --name bot-render-container bot-render

Send a request to the server running inside the container:

docker exec bot-render-container curl http://localhost:8080/?url=https://dynamic-meta.appspot.com

Stop the container:

docker kill bot-render-container

Clear containers:

docker rm -f $(docker ps -a -q)
Docker Pull Command
Owner
taojacob
Source Repository

Comments (0)