GithubHelp home page GithubHelp logo

rozhnev / docker-wkhtmltoimage-webservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 14 KB

Docker container based on Ubuntu 20.04 and provide website snapshots service useing wkhtmltopdf

License: MIT License

Dockerfile 42.57% Go 57.43%

docker-wkhtmltoimage-webservice's Introduction

docker-wkhtmltoimage-webservice

Inspired by docker-wkhtmltopdf-aas

wkhtmltopdf in a docker container as a web service.

This image is based on the ubuntu:20.04.

Running the service

Run the container with docker run and binding the ports to the host. The web service is exposed on port 80 in the container.

docker run -d -p 80:80 docker-wkhtmltoimage-webservice

The container now runs as a daemon.

Using the webservice

There are multiple ways to generate a PDF of HTML using the service.

Uploading a HTML file

This is a convenient way to use the service from command line utilities like curl.

curl -X GET -vv http://<docker-host>:<port>/?source=www.example.com

where:

  • docker-host is the hostname or address of the docker host running the container

TODO

Bugs and questions

Authors and Contributors

Professional Support

docker-wkhtmltoimage-webservice's People

Contributors

rozhnev avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.