Skip to content

Commit

Permalink
Fix all nodejs installs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Dec 14, 2023
1 parent f44d0aa commit 61e184b
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 46 deletions.
13 changes: 7 additions & 6 deletions src/images/Dockerfile.rust-1_x
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ RUN set -e; \

# Install Node.js
RUN set -e; \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -fsSL "https://deb.nodesource.com/setup_16.x" | bash - \
&& apt-get install -y nodejs npm \
&& apt-get purge --auto-remove -y curl \
&& node --version
export DEBIAN_FRONTEND=noninteractive NODE_MAJOR=16 \
&& apt-get update \
&& apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& apt-get update \
&& apt-get install nodejs npm -y;

# Install pnpm
RUN set -e; \
Expand Down
6 changes: 2 additions & 4 deletions src/images/Dockerfile.swift-5_6
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ LABEL org.opencontainers.image.source https://github.com/swift-cloud/build

# Install Node.js
RUN yum -y update \
&& yum -y groupinstall "Development Tools" \
&& curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - \
&& yum -y install nodejs \
&& node --version
&& yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1;

# Install pnpm
RUN npm install -g pnpm \
Expand Down
6 changes: 2 additions & 4 deletions src/images/Dockerfile.swift-5_7
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ LABEL org.opencontainers.image.source https://github.com/swift-cloud/build

# Install Node.js
RUN yum -y update \
&& yum -y groupinstall "Development Tools" \
&& curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - \
&& yum -y install nodejs \
&& node --version
&& yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1;

# Install pnpm
RUN npm install -g pnpm \
Expand Down
6 changes: 2 additions & 4 deletions src/images/Dockerfile.swift-5_8
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ LABEL org.opencontainers.image.source https://github.com/swift-cloud/build

# Install Node.js
RUN yum -y update \
&& yum -y groupinstall "Development Tools" \
&& curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - \
&& yum -y install nodejs \
&& node --version
&& yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1;

# Install pnpm
RUN npm install -g pnpm \
Expand Down
6 changes: 2 additions & 4 deletions src/images/Dockerfile.swift-5_9
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ LABEL org.opencontainers.image.source https://github.com/swift-cloud/build

# Install Node.js
RUN yum -y update \
&& yum -y groupinstall "Development Tools" \
&& curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - \
&& yum -y install nodejs \
&& node --version
&& yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1;

# Install pnpm
RUN npm install -g pnpm \
Expand Down
13 changes: 7 additions & 6 deletions src/images/Dockerfile.swiftwasm-5_6
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ RUN set -e; \

# Install Node.js
RUN set -e; \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -fsSL "https://deb.nodesource.com/setup_16.x" | bash - \
&& apt-get install -y nodejs npm \
&& apt-get purge --auto-remove -y curl \
&& node --version
export DEBIAN_FRONTEND=noninteractive NODE_MAJOR=16 \
&& apt-get update \
&& apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& apt-get update \
&& apt-get install nodejs npm -y;

# Install pnpm
RUN set -e; \
Expand Down
13 changes: 7 additions & 6 deletions src/images/Dockerfile.swiftwasm-5_7
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ RUN set -e; \

# Install Node.js
RUN set -e; \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -fsSL "https://deb.nodesource.com/setup_16.x" | bash - \
&& apt-get install -y nodejs npm \
&& apt-get purge --auto-remove -y curl \
&& node --version
export DEBIAN_FRONTEND=noninteractive NODE_MAJOR=16 \
&& apt-get update \
&& apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& apt-get update \
&& apt-get install nodejs npm -y;

# Install pnpm
RUN set -e; \
Expand Down
13 changes: 7 additions & 6 deletions src/images/Dockerfile.swiftwasm-5_8
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ RUN set -e; \

# Install Node.js
RUN set -e; \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -fsSL "https://deb.nodesource.com/setup_16.x" | bash - \
&& apt-get install -y nodejs npm \
&& apt-get purge --auto-remove -y curl \
&& node --version
export DEBIAN_FRONTEND=noninteractive NODE_MAJOR=16 \
&& apt-get update \
&& apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& apt-get update \
&& apt-get install nodejs npm -y;

# Install pnpm
RUN set -e; \
Expand Down
13 changes: 7 additions & 6 deletions src/images/Dockerfile.swiftwasm-5_9
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ RUN set -e; \

# Install Node.js
RUN set -e; \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -fsSL "https://deb.nodesource.com/setup_16.x" | bash - \
&& apt-get install -y nodejs npm \
&& apt-get purge --auto-remove -y curl \
&& node --version
export DEBIAN_FRONTEND=noninteractive NODE_MAJOR=16 \
&& apt-get update \
&& apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& apt-get update \
&& apt-get install nodejs npm -y;

# Install pnpm
RUN set -e; \
Expand Down

0 comments on commit 61e184b

Please sign in to comment.