Nicholas Jones 6846e7941f Install pm2 via npm (#72)
As noted in the Dockerfile, the previous route to install pm2 was broken at
some point. As a result, pm2 related files are now being copied over from an
image created prior to the breakage.

This change now installs pm2 via npm, which is the recommended route for this.
A small adjustment had to be made in the processManager code; an
argument was being passed with a space in it. For reasons that I've not been
able to fully trace, this no longer works. It should be noted that passing
arguments in this way can result in undesirable behaviour - in this case I
believe "--interpreter none" was being passed as a single argument, rather than
"--interpreter", "none". I've adjusted this to use an equals - splitting into 2
separate strings works well too.
2019-05-09 11:15:37 +02:00
2019-05-09 11:15:37 +02:00
2019-04-14 17:07:45 +02:00
2019-05-09 11:15:37 +02:00
2019-03-14 16:39:08 +01:00
2019-04-14 17:07:45 +02:00
2018-12-10 16:09:19 +01:00
2019-04-14 17:07:45 +02:00
2019-04-14 17:07:45 +02:00
2019-04-14 17:07:45 +02:00

Gotenberg logo

Gotenberg

A Docker-powered stateless API for converting HTML, Markdown and Office documents to PDF.

Documentation · Contributing


At TheCodingMachine, we build a lot of web applications (intranets, extranets and so on) which require to generate PDF from various sources. Each time, we ended up using some well known libraries and kind of lost time by reimplementing a solution from a project to another project. Meh.

Features

  • HTML and Markdown conversions using Google Chrome headless
  • Office conversions (.txt, .rtf, .docx, .doc, .odt, .pptx, .ppt, .odp and so on) using unoconv
  • Performance :zap:: Google Chrome and LibreOffice (unoconv) started once in the background thanks to PM2
  • Failure prevention :broken_heart:: PM2 automatically restarts previous processes if they fail
  • Assets :package:: send your header, footer, images, fonts, stylesheets and so on for converting your HTML and Markdown to beaufitul PDFs!
  • Easily interact with the API using our Go and PHP libraries

Quick start

Open a terminal and run the following command:

$ docker run --rm -p 3000:3000 thecodingmachine/gotenberg:5

The API is now available on your host at http://localhost:3000.

Head to the documentation to learn how to interact with it!

Badges

Docker image layers Travis CI GoDoc Go Report Card


Psst: TheCodingMachine is always looking for talented coders.

Languages
Go 63.6%
Gherkin 34.6%
Dockerfile 1.3%
Makefile 0.4%