-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change build strategy to support PDF conversion via LibreOffice #9
Conversation
Signed-off-by: Jeremy Ho <[email protected]>
Change content type to pdf if pdf Signed-off-by: Jeremy Ho <[email protected]>
Add in work in progress working Dockerfile Simplify temp file extension handling Signed-off-by: Jeremy Ho <[email protected]>
Signed-off-by: Jeremy Ho <[email protected]>
b694071
to
5b9907b
Compare
Collapse Dockerfile into app.bc.yaml Update openshift template indentations Signed-off-by: Jeremy Ho <[email protected]>
5b9907b
to
24182e2
Compare
Add notes on the build config Docker strategy Signed-off-by: Jeremy Ho <[email protected]>
Signed-off-by: Jeremy Ho <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor cleanups on the documentation; just to avoid confusion.
I don't think this works for odt to pdf? Are we not verifying that this dockerfile will kick off the pdf conversion?
Drop unused nodejs:10 ImageStream from buildconfig Signed-off-by: Jeremy Ho <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DO NOT MERGE with the temporary Line 32 hardcode in the commit history!
c9c76f4
to
00b1778
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 nice work getting that onto alpine!
Description
This PR focuses on enabling the PDF conversion capability in the Carbone.js library. To this end, the core change involves us switching out from an S2I build to a custom Alpine image with the addition of LibreOffice components to allow PDF conversion to happen.
We switch off of S2I to an Alpine image in order to have more control over the build process, as well as have a leaner docker image. While S2I is capable of handling standard node applications, the addition of LibreOffice introduces another layer of complexity that S2I honestly wasn't designed to handle.
For reference, the proposed Alpine image is ~700MB in size, whereas an equivalent build extending from the S2I image would be ~2.1GB in size.
[SHOWCASE-405]
[SHOWCASE-455]
Types of changes
New feature (non-breaking change which adds functionality)
Documentation (non-breaking change with enhancements to documentation)
Checklist
v*.api-spec.yaml
documentation (if appropriate)Further comments
Related Issues: carboneio/carbone#46