Conversation
|
Hi @diguage thanks for the contribution. Is there an issue that could help us (maintainers) to understand a bit better the "why/what/how" of this PR please? A few feedback at first:
|
dduportal
left a comment
There was a problem hiding this comment.
Some important feedback to allow this PR to land (version tracking is mandatory)
| which \ | ||
| font-noto-cjk | ||
| font-noto-cjk \ | ||
| nodejs |
There was a problem hiding this comment.
- What is the version of nodejs used here? Could you fix it and add an updatecli manifest (in
./updatecli/updatecli.d/) to track its version please? - Could you share, in the PR description, the additional size resulting with this change (the image is already quite heavy)?
There was a problem hiding this comment.
OK, let me try it. I do not know how to do it(the updatecli manifest), give me some time.
There was a problem hiding this comment.
No problem: it is not very well documented on the contributing section so there is no strong expectations.
My message was to let you know that it is needed but I may help.
I suggest that you try by checking the existing manifests.
There was a problem hiding this comment.
I updated the code. But it is not the final work. Give me some time.
There was a problem hiding this comment.
I updated the code to add a test case and manifest for Node.js. Please check it. If it has some errors, please help me to update it.
I tried to build it many times but it always threw errors. Please help me to check the additional size resulting with this change. Thanks.
There was a problem hiding this comment.
WDYT about using a Multi stage build with the official NodeJS image (instead of instaling the nodejs package) in which you install the NPM packages, and you retrieve only the required directories/files (explained in https://medium.com/geekculture/how-to-install-a-specific-node-js-version-in-an-alpine-docker-image-3edc1c2c64be for a "pure" NodeJS installation).
It would allow faster builds (node js / npm run in parallel of the rest), and a fixed controlled version of nodejs.
|
This issue is related to #183. Please see my comment there. |
|
|
||
| - [Asciidoctor Kroki](https://github.com/Mogztter/asciidoctor-kroki) 0.5.0 | ||
|
|
||
| - [Asciidoctor Web PDF](https://github.com/Mogztter/asciidoctor-web-pdf) 1.0.0-alpha.14 -- This is an unofficial project. |
There was a problem hiding this comment.
@mojavelinux I add the description: This is an unofficial project. . Is it OK?
| * https://github.com/asciidoctor/asciidoctor-confluence[Asciidoctor Confluence] {ASCIIDOCTOR_CONFLUENCE_VERSION} | ||
| * https://github.com/asciidoctor/asciidoctor-bibtex[Asciidoctor Bibtex] {ASCIIDOCTOR_BIBTEX_VERSION} | ||
| * https://github.com/Mogztter/asciidoctor-kroki[Asciidoctor Kroki] {ASCIIDOCTOR_KROKI_VERSION} | ||
| * https://github.com/Mogztter/asciidoctor-web-pdf[Asciidoctor Web PDF] {ASCIIDOCTOR_WEB_PDF_VERSION} -- This is an unofficial project. |
There was a problem hiding this comment.
@mojavelinux I add the description: This is an unofficial project. . Is it OK?
| ARG asciidoctor_kroki_version=0.5.0 | ||
| ARG nodejs_version=16.14.0-r0 | ||
| ARG asciidoctor_web_pdf_version=1.0.0-alpha.14 | ||
| ARG asciidoctor_kroki_npm_version=0.15.4 |
There was a problem hiding this comment.
what is the reason to add this element (since kroki is already installed)?
There was a problem hiding this comment.
Asciidoctor Kroki has two versions: for Ruby and for Node.js. Asciidoctor Kroki for Ruby was installed. But Asciidoctor Kroki for Node.js is not installed.
There was a problem hiding this comment.
Gotcha, thanks for the explanation! In that case we'll have to track the version of this component as well with an updatecli manifest :) (yea it's cumbersome but the goal is ensure that control what is inside this image to avoid supply chain issues)
Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
The PR contains two changes: