Skip to content

Commit

Permalink
revert: use node-16
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Feb 6, 2024
1 parent 0364e38 commit 52823f5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
fail-fast: false
matrix:
arch:
# - alpine-x64
# - alpine-arm64
- alpine-x64
- alpine-arm64
- focal-x64
# - focal-arm64
# - focal-armhf
# - focal-ppc64le
# - centos7-devtoolset8-arm64
# - centos7-devtoolset8-x64
- focal-arm64
- focal-armhf
- focal-ppc64le
- centos7-devtoolset8-arm64
- centos7-devtoolset8-x64

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion focal-arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# 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 npm install -g npm@latest
RUN npm install -g node-gyp
Expand Down
2 changes: 1 addition & 1 deletion focal-armhf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# 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 npm install -g npm@latest
RUN npm install -g node-gyp
Expand Down
2 changes: 1 addition & 1 deletion focal-ppc64le/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# 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 npm install -g npm@latest
RUN npm install -g node-gyp
Expand Down
20 changes: 8 additions & 12 deletions focal-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,16 @@ RUN apt-get update && apt-get install -y \
# RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
# && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep

# NVM
ENV NVM_VERSION v0.39.7
ENV NVM_DIR /$HOME/.nvm
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
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
# Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn

# 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 tar -xf node-v18.19.0-linux-x64-glibc-217.tar.xz
RUN mkdir -p ~/.nvm/versions/node && mv node-v18.19.0-linux-x64-glibc-217 ~/.nvm/versions/node/v18.99.0
RUN bash -c 'source $NVM_DIR/nvm.sh && nvm use 18.99.0'
RUN npm install -g npm@latest node-gyp yarn
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN apt-get update && apt-get install -y nodejs
RUN npm install -g npm@latest
RUN npm install -g node-gyp

# Set python3 as default
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
Expand Down

0 comments on commit 52823f5

Please sign in to comment.