Skip to content

spinnaker1/alpine-percollate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

alpine-percollate

Alpine image of percollate tool

percollate

Percollate image

This repository contains a working image of percollate tool Percollate. Percollate is: A command-line tool to turn web pages into beautifully formatted PDFs. This image solves the problems associated with installing and maintaining various NodeJs modules and dependencies and provides an executable, portable and isolated environment for percollate and enables 1-click docker deployment. This image is based on ubuntu 18.04 with node version v12.13.0 and npm version 6.12.0. The NodeJs is installed through nvm version 0.34.0 script. The instructions to run this image are as follows:

  1. Pull the docker image using:

$ docker pull actulance/alpine-percollate

  1. Create a directory at a preferred location on the host operating system. This directory is used to share data between the docker container and the host operating system.
  2. Execute the following command to run the container from the previously pulled image and share the created directory between the container and the host system:

$ docker container run --name=percollates -it -v ~/host_directory:/home actulance/alpine-percollate

  1. "/home" is the shared directory of the docker container with the host system's directory.
  2. Now both the host system and docker container directories are shared and browsable through the host operating system.
  3. "cd" to the "/home" directory inside the container.
  4. To transform a single web page to PDF use:

$ percollate pdf --output some.pdf https://example.com --no-sandbox

  1. The "--no-sandbox" option must be used with every percollate command as some node modules don't run natively at root level due to security reasons.
  2. More examples to use percollate are at Examples

Original GitHub issue: Please create a Docker image! #95

About

Alpine image of percollate tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.5%
  • CSS 22.9%
  • HTML 5.7%
  • Dockerfile 1.9%