Replies: 3 comments 1 reply
-
Note you are using a very old podman version, I highly suggest you try to update to the latest version and try again. |
Beta Was this translation helpful? Give feedback.
-
I tried to fetch the latest podman version using |
Beta Was this translation helpful? Give feedback.
-
This feels a lot more like a discussion then a podman issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
I am using podman build in my CI jobs to build our images and publish them. However, the podman build fails on npm install and other npm steps for images released after node18.10.0-alpine3.15. I have tried multiple newer node18 images and most of node20 images. Below I have attached the dockerfile where I was seeing the issue.
Variables used in the file -
VARIANT: node20
NODE_IMAGE: "node:20.9.0-alpine3.18"
YARN_VERSION: "v1.22.19"
KANIKO_IMAGE: "gcr.io/kaniko-project/executor:v1.8.1-debug"
JDK_IMAGE: "amazoncorretto:8-alpine3.15-jdk"
VAULT_VERSION: "1.10.1"
Dockerfile -
ARG NODE_IMAGE
ARG KANIKO_IMAGE
ARG JDK_IMAGE
FROM $NODE_IMAGE as nodeImage
FROM $KANIKO_IMAGE as kanikoImage
FROM $JDK_IMAGE as base
ENV DOCKER_CONFIG /kaniko/.docker/
ENV PATH $PATH:/kaniko
RUN mkdir -p /kaniko/.docker &&
apk -uv add --no-cache
groff
jq
aws-cli
unzip
curl
bash
make
git
g++
python2
openssh
autoconf \
build-base
apk-tools
zip
ARG VAULT_VERSION
RUN wget --quiet https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip &&
unzip vault_${VAULT_VERSION}_linux_amd64.zip -d /usr/bin
ARG YARN_VERSION
COPY --from=nodeImage /usr/local/bin/ /usr/local/bin/
COPY --from=nodeImage /usr/local/lib/node_modules /usr/local/lib/node_modules
COPY --from=nodeImage /opt/yarn-$YARN_VERSION /opt/yarn-$YARN_VERSION
COPY --from=kanikoImage /kaniko /kaniko
WORKDIR /workspace
RUN rm -rf ~/.npm/_cacache ~/.npmrc .npmrc
&& npm cache verify
&& npm config list -l \
&& npm i -g typescript ts-node jest-junit xml
Job Logs where failure occurs -
[3/3] STEP 7/33: ARG YARN_VERSION
--> 69019ad4f54
[3/3] STEP 8/33: COPY --from=nodeImage /usr/local/bin/ /usr/local/bin/
--> 2c9a6d9db1d
[3/3] STEP 9/33: COPY --from=nodeImage /usr/local/lib/node_modules /usr/local/lib/node_modules
--> 2b7dd22d85e
[3/3] STEP 10/33: COPY --from=nodeImage /opt/yarn-$YARN_VERSION /opt/yarn-$YARN_VERSION
--> 96b10fcf557
[3/3] STEP 11/33: COPY --from=kanikoImage /kaniko /kaniko
--> b29ea507c7b
[3/3] STEP 12/33: WORKDIR /workspace
--> 8e1910e0a67
[3/3] STEP 13/33: RUN rm -rf ~/.npm/_cacache ~/.npmrc .npmrc
--> c3f94e03d18
[3/3] STEP 14/33: RUN npm cache verify
Assertion failed: fd > STDERR_FILENO (../deps/uv/src/unix/core.c: uv__close: 633)
subprocess exited on aborted
subprocess exited with status 1
Error: error building at STEP "RUN npm cache verify": exit status 1
Please keep in mind that removing npm cache verify just makes it fail on a different npm step.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Image fails to build with the error linked above.
Describe the results you expected
I expected my image to built successfully as it has for images up until node18.10.0-alpine-3.15
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions