s2i-nodejs-container icon indicating copy to clipboard operation
s2i-nodejs-container copied to clipboard

Node 18 Builder image "Dockerfile.c9s" does not complete build

Open pacostas opened this issue 3 years ago • 0 comments

Building docker image Dockerfile.c9s with docker build -f Dockerfile.c9s . -t builderImage18c9s throws below error during building process

The command '/bin/sh -c MODULE_DEPS="make gcc gcc-c++ git openssl-devel" &&     INSTALL_PKGS="$MODULE_DEPS nodejs npm nodejs-nodemon nss_wrapper" &&     ln -s /usr/lib/node_modules/nodemon/bin/nodemon.js /usr/bin/nodemon &&     yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS &&     rpm -V $INSTALL_PKGS &&     node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" &&     yum -y clean all --enablerepo='*'' returned a non-zero code: 1

Trying to figure out what is the issue I believe it has to do with with not specifying nodejs version https://github.com/sclorg/s2i-nodejs-container/blob/e70cd8f58174d83b0eb8c619ee224dbf691d66f3/18/Dockerfile.c9s#L57-L63 as on Dockerfile.c8s https://github.com/sclorg/s2i-nodejs-container/blob/e70cd8f58174d83b0eb8c619ee224dbf691d66f3/18/Dockerfile.c8s#L56

More specifically on line https://github.com/sclorg/s2i-nodejs-container/blob/e70cd8f58174d83b0eb8c619ee224dbf691d66f3/18/Dockerfile.c9s#L62 the command node -v returns 16 instead of 18

pacostas avatar Sep 21 '22 17:09 pacostas