Skip to content

[FEAT]: Make the version update of node automatic #43

@ImBIOS

Description

@ImBIOS

Clear and concise description of the problem

knowing node has a version utility library, it's possible to make the node version upgrade completely hands-free or human-labor-free,

Suggested solution

Same method as official docs method using @nodevu/core.

Make sure to check available "node alpine" tags in Docker Hub, preferably using Docker CLI. Especially the Alpine Docker image version, otherwise, it is possible to break the build when the Alpine version is not available.

It's simple, we delete EoL versions and we create a new version by copying existing files and folders, but updating the folder name and replacing some strings.

Reference:

Alternative

Alternatively, we can use our own solution by reading docker-node repo page.

Use curl and jq to fetch the repo page and determine which major version exists; we will then auto-update our repo docs accordingly. Using this method, make sure to check that the available "node alpine", especially the alpine version number, exists in the Docker Hub. So, we need to use the Docker CLI to get that information or read it directly from Docker Hub's web interface.

It's simple, we delete EoL versions and we create a new version by copying existing files and folders, but updating the folder name and replacing some strings.

Reference: -

Additional context

We prefer to use the newest Alpine version available, since we want our Docker image future proof and we build it daily.

But other opinions are welcome. We love feedback.

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions