Public | Automated Build

Last pushed: 4 months ago
Short Description
Convert any web page at your fingertips
Full Description

Web2PDF Dockerfile

This repository contains Dockerfile of Web2PDF for Docker

Docker image

Latest docker image is built and hosted on docker hub. You can pull one by:

docker pull warenix/web2pdf:latest

Base Docker Image

app root

Application code is placed at /app

Installation

  1. Install Docker.
  2. Install Docker machine and compose.

Usage

  1. Build Web2PDF api server image:

     docker-compose build
    
  2. Start Web2PDF api server container:

     docker-compose up
    

    After few seconds, open localhost to see the api server is up and running.

  3. Test pdf conversion service is up

     sh test/test_pdf.sh
    

    You should see output like below:

     {
         "result": {
             "pdf_url": "http://localhost:8080/pdfout/yv2iWaQOLPN.pdf",
             "url": "http://hk.yahoo.com"
         }
     }
    
  4. Portforward from host to virtualbox
    If you cannot see Web2PDF api server container is responding to your requst, you may need to do pror forward from your host to the virtual box as below:

     cd docker/script; sh vbox_port_forward.sh
    

    You can try again then.

Docker Pull Command
Owner
warenix
Source Repository