Skip to content

Upgrade Node.js in the PHP container #172

@michaelcasey316

Description

@michaelcasey316

Magneto Cloud Docker includes a Node.js installation as part of the CLI containers. This can be seen here: https://github.com/magento/magento-cloud-docker/blob/develop/images/php/cli/Dockerfile#L15

However, the problem is that it installs Node.js 8, which no longer receives security updates according to https://nodejs.org/en/about/releases/

We need to change this to a supported version of Node.js, such as version 10 or higher. We could also use Node Version Manager (https://github.com/nvm-sh/nvm) to simplify version selection.

Internal ticket reference: MCLOUD-5586

Preconditions

  1. Install Magento Cloud Docker
  2. Build the configuration

Steps to reproduce

  1. Run docker-compose run deploy node -v from your project folder.

Expected result

  1. The version shown is supported according to https://nodejs.org/en/about/releases/

Actual result

  1. Version 8.x is shown, which is unsupported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions