From e70ab62ec024c11c0d0e47c688c6608d88b6fccd Mon Sep 17 00:00:00 2001 From: "Vazquez,Brais (IT EDP)" Date: Fri, 17 Jan 2025 14:09:55 +0100 Subject: [PATCH] update all node agents --- common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8 | 3 ++- common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8 | 3 ++- common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8 | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8 b/common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8 index cde37d1d..b4b5e763 100644 --- a/common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8 +++ b/common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8 @@ -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 @@ -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=no-reply@opendevstack.org && \ - 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) && \ diff --git a/common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8 b/common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8 index 9448ac84..aba3bb7e 100644 --- a/common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8 +++ b/common/jenkins-agents/nodejs20/docker/Dockerfile.ubi8 @@ -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 @@ -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=no-reply@opendevstack.org && \ - 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) && \ diff --git a/common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8 b/common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8 index 2a61cb46..5adc6a61 100644 --- a/common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8 +++ b/common/jenkins-agents/nodejs22/docker/Dockerfile.ubi8 @@ -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