docker-java-node
docker-java-node copied to clipboard
fail to create docker image from timbru31/java-node:11-jdk-14
From the last week it starting to fail, we got the following error when try to create docker image, run from centos 7 (amd64):
15:20:53 Step 1/28 : FROM timbru31/java-node:11-jdk-14 as attbuilder
15:20:53 ---> 171895027082
15:20:53 Step 2/28 : RUN npm install -g node-gyp
15:20:54 ---> Running in a8c1274c96e7
15:20:56 [91mnode[1]: ../src/node_platform.cc:61:std::unique_ptr
Thanks for your report. I'll try to reproduce this.
Works fine for me, can you give me the exact SHA256 you are using? If possible also the Dockerfile you are using.
Looks like we have a resource issue. can be close. Thank you!
Hi, I am facing the same error with latest version - fail to create docker image from timbru31/java-node
node[1]: ../src/node_platform.cc:61:std::unique_ptr
Did you find how to solve it?
We still didn't find how to solve it, our SHA256 sha256:b822007d34d33436001189f478e5be1d4241b918fb14324865162414501fcf64
We try to use with a specific last tag and still get same error, our docker file:
FROM timbru31/java-node:11-jdk-14 as attbuilder
RUN npm install -g node-gyp RUN apt-get update -y RUN apt-get install -y python3-pip python-dev build-essential RUN mkdir -p /build
COPY ./package.json /build/ COPY ./package-lock.json /build/ COPY ./.eslintrc /build/
WORKDIR /build RUN npm set registry http://artifacts.cloud.**** RUN npm install
Bundle app source
COPY . /build
RUN npm run lint RUN rm .eslintrc
Build app for production
RUN npm run build RUN npm run test
FROM timbru31/java-node:11-jdk-14
RUN adduser --disabled-password --gecos '' app
ENV user app
Run the image as a non-root user
USER $user
Create app directory
RUN mkdir -p /home/$user/src WORKDIR /home/$user/src LABEL Name="service" LABEL Version="1.0.0.0"
COPY --from=attbuilder /build ./
EXPOSE 5000
ENV NODE_ENV production
CMD ["node", "./dist/server.js"]
When I running it from my OSX the image is created but not on our Jenkins machine...
using FROM timbru31/java-node:8-jre-12 worked.
Please note that Node.js v12 is EOL and not maintained anymore, I'd advise not to use this anymore.
When I running it from my OSX the image is created but not on our Jenkins machine...
Have you checked the installed Docker version on your Jenkins machine? This sounds like that one is too old.
Thank you . I will check and update if it works
Hi, this issue I think is due to this release in Docker-library https://github.com/docker-library/official-images/pull/12516 on 27th May. The newer Ubuntu 22.04 includes a newer glibc that does not work with older Docker hosts. For example, in dir docker-java-node/11/jdk/14, first line FROM eclipse-temurin:11-jdk should be changed to FROM eclipse-temurin:11-jdk-focal using Ubuntu 20.04-focal for a stable version. Our service get back to work after changing this.
Closing due to staleness. If the issue persists, please feel free to create a new one!
Thank you for your contributions.