This repository contains Dockerfile of Web2PDF for Docker
Latest docker image is built and hosted on docker hub. You can pull one by:
docker pull warenix/web2pdf:latestApplication code is placed at /app
- Install Docker.
- Install Docker machine and compose.
-
Build Web2PDF api server image:
docker-compose build
-
Start Web2PDF api server container:
docker-compose up
After few seconds, open localhost to see the api server is up and running.
-
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" } }
0. 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:
```sh
cd docker/script; sh vbox_port_forward.sh
```
You can try again then.
0. Test interactively
```sh
docker run -u root -ti --rm -p8080:8080 --entrypoint=bash warenix/web2pdf:latest
```