help
help copied to clipboard
Unable to install node image due to gpg check failed
Node.js Version
v16.20.2
NPM Version
8.19.4
Operating System
Linux buildkitsandbox 6.6.26-linuxkit
Subsystem
Other
Description
Docker file:
FROM docker.artifactory.aws.athenahealth.com/athenahealth-base-oraclelinux.....
ARG NODESOURCE_URL=https://rpm.nodesource.com/setup_16.x
COPY certs.pem ${ATHENA_CAFILE_PATH}
ENV NODE_EXTRA_CA_CERTS=${ATHENA_CAFILE_PATH}
ENV NODE_VERSION $NODE_VERSION
RUN set -ex \
&& curl --output setup.sh -fsSL "${NODESOURCE_URL}" \
&& bash ./setup.sh \
&& yum install -y nodejs \
&& rm ./setup.sh \
&& node --version \
&& npm --version \
&& groupadd -g 993 jenkins_grp \
&& adduser -u 996 -g 993 jenkins \
&& yum install -y gcc-c++ make tini-0.19.0 \
&& yum clean all \
&& npm i -g yarn \
&& npm i -g pnpm \
&& yum clean packages
ENTRYPOINT ["tini", "--"]
CMD [ "node" ]
Error Message:
From : https://rpm.nodesource.com/gpgkey/NODESOURCE-GPG-SIGNING-KEY-EL warning: Signature not supported. Hash algorithm SHA1 not available. Key import failed (code 2). Failing package is: nodejs-2:16.20.2-1nodesource.x86_64 GPG Keys are configured as: https://rpm.nodesource.com/gpgkey/NODESOURCE-GPG-SIGNING-KEY-EL The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: GPG check FAILED
Build is working fine when I provide --nogpgcheck. But Could someone help with resolving this gpg check ?
Minimal Reproduction
No response
Output
No response
Before You Submit
- [X] I have looked for issues that already exist before submitting this
- [X] My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask