Skip to content

Commit

Permalink
feat(alpine): use node-v16
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Feb 26, 2024
1 parent 68dedc7 commit eb7a274
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
arch:
- alpine-x64
- alpine-arm64
# - alpine-arm64
- bionic-x64
- bionic-arm64
- bionic-armhf
Expand All @@ -22,7 +22,7 @@ jobs:
# - focal-ppc64le
# - centos7-devtoolset8-arm32v7
- centos7-devtoolset8-arm64
# - centos7-devtoolset8-ppc64le
- centos7-devtoolset8-ppc64le
- centos7-devtoolset8-x64
- bionic-devtoolset-arm32v7
- bionic-devtoolset-ppc64le
Expand Down
19 changes: 15 additions & 4 deletions alpine-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ ARG REPO=alpine
ARG TAG=3.16
FROM ${REPO}:${TAG}

RUN apk add nodejs npm g++ python3 make git bash curl perl pkgconfig libsecret-dev krb5-dev \
# VSCodium
jq
RUN npm install -g yarn
ARG NODE_VERSION="16.20.2"

RUN apk add g++ python3 make git bash curl perl pkgconfig libsecret-dev krb5-dev jq

# setup nodejs repo
RUN curl -L -O https://unofficial-builds.nodejs.org/download/release/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64-musl.tar.gz && \
tar -xzf node-v${NODE_VERSION}-linux-x64-musl.tar.gz && \
cd node-v${NODE_VERSION}-linux-x64-musl && \
cp -R * /usr/local/ && \
cd .. && \
rm -rf node-v${NODE_VERSION}-linux-x64-musl* && \
node --version

# install yarn, node-gyp
RUN npm install -g yarn node-gyp

RUN mkdir -p /root/vscode
WORKDIR /root/vscode
3 changes: 2 additions & 1 deletion centos7-devtoolset8-ppc64le/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ARG INSTALL_PKGS="devtoolset-8-gcc \
libsecret-devel \
krb5-devel \
python3"
ARG NODE_VERSION="16.20.2"

# setup dependencies
RUN yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
Expand All @@ -19,7 +20,7 @@ RUN yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \

# setup nodejs repo
RUN curl -L -O https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-ppc64le.tar.gz && \
tar -xzf node-v${NODE_VERSION}-linux-armv7l.tar.gz && \
tar -xzf node-v${NODE_VERSION}-linux-ppc64le.tar.gz && \
cd node-v${NODE_VERSION}-linux-ppc64le && \
cp -R * /usr/local/ && \
cd .. && \
Expand Down

0 comments on commit eb7a274

Please sign in to comment.