Skip to content

Commit

Permalink
update all node agents
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Jan 17, 2025
1 parent 728a468 commit e70ab62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ARG nexusAuth
ENV NODEJS_VERSION=18 \
YARN_VERSION=1.22.18 \
NPM_CONFIG_PREFIX=$HOME/.npm-global \
NPM_CONFIG_CAFILE=/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem \
PATH=$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$PATH \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
Expand Down Expand Up @@ -49,7 +50,7 @@ RUN yum repolist \
RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
npm config set //${nexusUrl#*://}/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set [email protected] && \
npm config set ca /etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem && \
npm config set strict-ssl=true && \
yarn config set registry $nexusUrl/repository/npmjs/ -g && \
echo node version: $(node --version) && \
echo npm version: $(npm --version) && \
Expand Down
3 changes: 2 additions & 1 deletion common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ARG nexusAuth
ENV NODEJS_VERSION=20 \
YARN_VERSION=1.22.19 \
NPM_CONFIG_PREFIX=$HOME/.npm-global \
NPM_CONFIG_CAFILE=/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem \
PATH=$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$PATH \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
Expand Down Expand Up @@ -49,7 +50,7 @@ RUN yum repolist \
RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
npm config set //${nexusUrl#*://}/repository/npmjs/:_auth=$(echo -n $nexusAuth | base64) && \
npm config set [email protected] && \
npm config set ca /etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem && \
npm config set strict-ssl=true && \
yarn config set registry $nexusUrl/repository/npmjs/ -g && \
echo node version: $(node --version) && \
echo npm version: $(npm --version) && \
Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
echo yarn version: $(yarn --version)

RUN chown -R 1001:0 $HOME && \
chmod -R g+rwX $HOME && \
chmod -R g+rwX $HOME

USER 1001

0 comments on commit e70ab62

Please sign in to comment.