-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update minor and patch versions for NodeJS environment (#194)
Signed-off-by: Aurélien Pupier <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,17 +75,17 @@ ENV PATH="/home/tooling/.local/share/coursier/bin:$PATH" | |
# NodeJS | ||
RUN mkdir -p /home/tooling/.nvm/ | ||
ENV NVM_DIR="/home/tooling/.nvm" | ||
ENV NODEJS_20_VERSION=20.18.0 | ||
ENV NODEJS_18_VERSION=18.19.1 | ||
ENV NODEJS_20_VERSION=20.18.1 | ||
ENV NODEJS_18_VERSION=18.20.5 | ||
ENV NODEJS_DEFAULT_VERSION=${NODEJS_18_VERSION} | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | PROFILE=/dev/null bash | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | PROFILE=/dev/null bash | ||
RUN echo 'export NVM_DIR="$HOME/.nvm"' >> ${PROFILE_EXT} \ | ||
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ${PROFILE_EXT} | ||
RUN source /home/user/.bashrc && \ | ||
nvm install v${NODEJS_20_VERSION} && \ | ||
nvm install v${NODEJS_18_VERSION} && \ | ||
nvm alias default v${NODEJS_DEFAULT_VERSION} && nvm use v${NODEJS_DEFAULT_VERSION} && \ | ||
npm install --global [email protected].17 &&\ | ||
npm install --global [email protected].22 &&\ | ||
chgrp -R 0 /home/tooling && chmod -R g=u /home/tooling | ||
ENV PATH=$NVM_DIR/versions/node/v${NODEJS_DEFAULT_VERSION}/bin:$PATH | ||
ENV NODEJS_HOME_20=$NVM_DIR/versions/node/v${NODEJS_20_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,17 +75,17 @@ ENV PATH="/home/tooling/.local/share/coursier/bin:$PATH" | |
# NodeJS | ||
RUN mkdir -p /home/tooling/.nvm/ | ||
ENV NVM_DIR="/home/tooling/.nvm" | ||
ENV NODEJS_20_VERSION=20.18.0 | ||
ENV NODEJS_18_VERSION=18.19.1 | ||
ENV NODEJS_20_VERSION=20.18.1 | ||
ENV NODEJS_18_VERSION=18.20.5 | ||
ENV NODEJS_DEFAULT_VERSION=${NODEJS_18_VERSION} | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | PROFILE=/dev/null bash | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | PROFILE=/dev/null bash | ||
RUN echo 'export NVM_DIR="$HOME/.nvm"' >> ${PROFILE_EXT} \ | ||
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ${PROFILE_EXT} | ||
RUN source /home/user/.bashrc && \ | ||
nvm install v${NODEJS_20_VERSION} && \ | ||
nvm install v${NODEJS_18_VERSION} && \ | ||
nvm alias default v${NODEJS_DEFAULT_VERSION} && nvm use v${NODEJS_DEFAULT_VERSION} && \ | ||
npm install --global [email protected].17 &&\ | ||
npm install --global [email protected].22 &&\ | ||
chgrp -R 0 /home/tooling && chmod -R g=u /home/tooling | ||
ENV PATH=$NVM_DIR/versions/node/v${NODEJS_DEFAULT_VERSION}/bin:$PATH | ||
ENV NODEJS_HOME_20=$NVM_DIR/versions/node/v${NODEJS_20_VERSION} | ||
|