question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proposal: Multiple docker images per Node.js version

See original GitHub issue

Thanks for the great tool! I am grateful for the wide range of development, not only tools but also ecosystems such as plugins and ready-to-run docker images!

By the way, the current docker image only works with Node.js version 12. Adding support for other versions would be more useful. Since HonKit recommends using the Node.js LTS version, the Docker Image should also match it.

But it’s also important to provide compatibility for older users, including those from GitBook. Therefore, by providing a combination of multiple OSs and versions as a tag, it is possible to provide a new environment while maintaining compatibility.

NOTE: Example of tagging in node images

Tag name Description
18-bullseye Specify both version and OS
18 Specify only the version (OS bullseye is selected as the recommended environment)
bullseye Specify OS only (version 18, which is the latest version, is selected)

If we provide multiple Docker Images with similar rules, for example, the following tags will be prepared.

Tag name Description
vX.Y.Z-nodeN Specify both Honkit and Node.js versions
nodeN Only Node.js version is specified and HonKit is the latest
vX.Y.Z Specify only HonKit version and Node.js gets our recommended version
latest Get the latest HonKit with our recommended Node.js version

Consideration

We need to consider what to choose as the recommended Node.js version.

If we choose 12, the Docker Image provided by the latest tag remains unchanged. This should be selected if compatibility is important.

However, this version is no longer recommended by HonKit. If we were to choose the latest LTS version of Node.js, it should be 16 by now.

Motivation

Even if we provide additional Docker Images, it doesn’t change much to use as is, but some users will get the following benefits.

  • Base image for using calibre that HonKit officially supports.
    • Especially installing old versions of caliber is a pain.
    • Plug-in users use honkit/honkit as a base image, and add their favorite fonts and plug-ins to it.
  • Above all, the performance improvement in 16 is wonderful.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
azucommented, Aug 28, 2022

I’ve (very rough) added docker usage to README. https://github.com/honkit/honkit#docker-support

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 best practices to containerize Node.js web applications ...
Use multi-stage builds; Keeping unnecessary files out of your Node.js Docker images; Mounting secrets into the Docker build image. 1. Use ...
Read more >
9 Tips for Containerizing Your Node.js Application - Docker
Our top nine tips for containerizing and optimizing Node applications · 1) Use a specific base image tag instead of “version:latest” · 2)...
Read more >
Containerize a node.js application via Docker and ... - YouTube
Containerize a node. js application via Docker and Run multiple container via Docker -compose 04 · Chapters. View all · Chapters · Description....
Read more >
nodejs/docker-node: Official Docker Image for Node.js - GitHub
The node images come in many flavors, each designed for a specific use case. All of the images contain pre-installed versions of node...
Read more >
How To Build a Node.js Application with Docker - DigitalOcean
Though containers are not new, they offer a number of benefits — including process isolation and environment standardization — that are growing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found