revert: use node-16

This commit is contained in:
Baptiste Augrain 2024-02-06 23:57:40 +01:00
parent 0364e38220
commit 52823f5550
5 changed files with 18 additions and 22 deletions

View File

@ -10,14 +10,14 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
arch: arch:
# - alpine-x64 - alpine-x64
# - alpine-arm64 - alpine-arm64
- focal-x64 - focal-x64
# - focal-arm64 - focal-arm64
# - focal-armhf - focal-armhf
# - focal-ppc64le - focal-ppc64le
# - centos7-devtoolset8-arm64 - centos7-devtoolset8-arm64
# - centos7-devtoolset8-x64 - centos7-devtoolset8-x64
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -54,7 +54,7 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/so
RUN apt-get update && apt-get install -y yarn RUN apt-get update && apt-get install -y yarn
# Node.js # Node.js
RUN curl --silent --location https://deb.nodesource.com/setup_18.x | sudo -E bash - RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN apt-get update && apt-get install -y nodejs RUN apt-get update && apt-get install -y nodejs
RUN npm install -g npm@latest RUN npm install -g npm@latest
RUN npm install -g node-gyp RUN npm install -g node-gyp

View File

@ -54,7 +54,7 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/so
RUN apt-get update && apt-get install -y yarn RUN apt-get update && apt-get install -y yarn
# Node.js # Node.js
RUN curl --silent --location https://deb.nodesource.com/setup_18.x | sudo -E bash - RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN apt-get update && apt-get install -y nodejs RUN apt-get update && apt-get install -y nodejs
RUN npm install -g npm@latest RUN npm install -g npm@latest
RUN npm install -g node-gyp RUN npm install -g node-gyp

View File

@ -45,7 +45,7 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/so
RUN apt-get update && apt-get install -y yarn RUN apt-get update && apt-get install -y yarn
# Node.js # Node.js
RUN curl --silent --location https://deb.nodesource.com/setup_18.x | sudo -E bash - RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN apt-get update && apt-get install -y nodejs RUN apt-get update && apt-get install -y nodejs
RUN npm install -g npm@latest RUN npm install -g npm@latest
RUN npm install -g node-gyp RUN npm install -g node-gyp

View File

@ -67,20 +67,16 @@ RUN apt-get update && apt-get install -y \
# RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \ # RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
# && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep # && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
# NVM # Yarn
ENV NVM_VERSION v0.39.7 RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
ENV NVM_DIR /$HOME/.nvm RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules RUN apt-get update && apt-get install -y yarn
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN mkdir $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Node.js # Node.js
RUN wget https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-linux-x64-glibc-217.tar.xz RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN tar -xf node-v18.19.0-linux-x64-glibc-217.tar.xz RUN apt-get update && apt-get install -y nodejs
RUN mkdir -p ~/.nvm/versions/node && mv node-v18.19.0-linux-x64-glibc-217 ~/.nvm/versions/node/v18.99.0 RUN npm install -g npm@latest
RUN bash -c 'source $NVM_DIR/nvm.sh && nvm use 18.99.0' RUN npm install -g node-gyp
RUN npm install -g npm@latest node-gyp yarn
# Set python3 as default # Set python3 as default
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1