planner icon indicating copy to clipboard operation
planner copied to clipboard

Deprecated Node install script when building Docker image

Open CodeHex opened this issue 2 years ago • 2 comments
trafficstars

Description of the issue 📄

Running the line curl -fsSL https://deb.nodesource.com/setup_20.x in the Dockerfile comes up with a script deprecation warning and freezes the build for 60 secs. Looking at the contents of the scrpt, the warning says

This script, located at ${bold}https://deb.nodesource.com/setup_X${normal}, used to
  install Node.js is deprecated now and will eventually be made inactive.

  Please visit the NodeSource ${bold}distributions${normal} Github and follow the
  instructions to migrate your repo.
  ${underline}${green}${bold}https://github.com/nodesource/distributions${normal}

  The ${bold}NodeSource${normal} Node.js Linux distributions GitHub repository contains
  information about which versions of Node.js and which Linux distributions
  are supported and how to install it.
  ${underline}${green}${bold}https://github.com/nodesource/distributions${normal}


                          ${underline}${bold}${yellow}SCRIPT DEPRECATION WARNING${normal}
"

        echo
        echo "${cyan}${bold}TO AVOID THIS WAIT MIGRATE THE SCRIPT${normal}"
        echo "Continuing in 60 seconds (press Ctrl-C to abort) ..."
        echo
        sleep 60

Steps to fix 🛠

Replace using the script with the updated commands described in the nodesource repo readme.

To do 📋

  • [x] Claim this issue (comment below, or assign yourself if you are part of the codebar org)
  • [x] Fork and clone the repository
  • [x] Update the relevant files. Follow the steps to fix section in this issue.
  • [x] Commit your changes as one commit. Use the title of this issue as your commit message
  • [x] Submit a pull request
  • [x] Mention this issue in the PR description by including it's number
  • [ ] Have your pull request reviewed & merged by a codebar team member

CodeHex avatar Sep 14 '23 10:09 CodeHex

Hi 👋, I'm happy to have a crack at fixing this if its ok for me to work on it

CodeHex avatar Sep 14 '23 10:09 CodeHex

@CodeHex Thanks for creating the issue. It's a recent deprecation.

Please go ahead. Happy to review the work

asideofcode-dev avatar Sep 14 '23 12:09 asideofcode-dev

As of 26 Jul 2024 the install scripts are working again. Closing this issue.

matyikriszta avatar Jul 27 '24 03:07 matyikriszta