File tree 4 files changed +24
-5
lines changed
4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ LABEL summary="$SUMMARY" \
52
52
RUN INSTALL_PKGS="nodejs$NODEJS_VERSION nodejs-nodemon nodejs$NODEJS_VERSION-full-i18n nodejs$NODEJS_VERSION-npm findutils tar which nss_wrapper-libs" && \
53
53
microdnf -y --nodocs --setopt=install_weak_deps=0 install $INSTALL_PKGS && \
54
54
microdnf clean all && \
55
- node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
55
+ rm /usr/bin/node && ln -s /usr/bin/node-$NODEJS_VERSION /usr/bin/node && \
56
+ rm /usr/bin/npm && ln -s /usr/bin/npm-$NODEJS_VERSION /usr/bin/npm && \
57
+ rm /usr/bin/npx && ln -s /usr/bin/npx-$NODEJS_VERSION /usr/bin/npx && \
58
+ node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
56
59
rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*
57
60
58
61
#
Original file line number Diff line number Diff line change @@ -54,10 +54,13 @@ LABEL summary="$SUMMARY" \
54
54
usage="s2i build <SOURCE-REPOSITORY> quay.io/sclorg/$NAME-$NODEJS_VERSION-c10s:latest <APP-NAME>"
55
55
56
56
# Package libatomic_ops was removed
57
- RUN INSTALL_PKGS="make gcc gcc-c++ libatomic_ops git openssl-devel nodejs$NODEJS_VERSION nodejs-nodemon nodejs$NODEJS_VERSION-npm nss_wrapper-libs which" && \
57
+ RUN INSTALL_PKGS="make gcc gcc-c++ git openssl-devel nodejs$NODEJS_VERSION nodejs-nodemon nodejs$NODEJS_VERSION-npm nss_wrapper-libs which" && \
58
58
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
59
59
rpm -V $INSTALL_PKGS && \
60
- node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
60
+ rm /usr/bin/node && ln -s /usr/bin/node-$NODEJS_VERSION /usr/bin/node && \
61
+ rm /usr/bin/npm && ln -s /usr/bin/npm-$NODEJS_VERSION /usr/bin/npm && \
62
+ rm /usr/bin/npx && ln -s /usr/bin/npx-$NODEJS_VERSION /usr/bin/npx && \
63
+ node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
61
64
dnf -y clean all --enablerepo='*'
62
65
63
66
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ LABEL summary="$SUMMARY" \
51
51
RUN INSTALL_PKGS="make gcc gcc-c++ libatomic_ops git openssl-devel nodejs$NODEJS_VERSION nodejs-nodemon nodejs$NODEJS_VERSION-npm nss_wrapper-libs which" && \
52
52
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
53
53
rpm -V $INSTALL_PKGS && \
54
- node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
54
+ rm /usr/bin/node && ln -s /usr/bin/node-$NODEJS_VERSION /usr/bin/node && \
55
+ rm /usr/bin/npm && ln -s /usr/bin/npm-$NODEJS_VERSION /usr/bin/npm && \
56
+ rm /usr/bin/npx && ln -s /usr/bin/npx-$NODEJS_VERSION /usr/bin/npx && \
57
+ node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
55
58
dnf -y clean all --enablerepo='*'
56
59
57
60
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Original file line number Diff line number Diff line change @@ -113,4 +113,14 @@ ct_check_testcase_result $?
113
113
114
114
TEST_SET=${TESTS:- $TEST_LIST_HW } ct_run_tests_from_testset " hw"
115
115
116
- TEST_SET=${TESTS:- $TEST_LIST_BINARY } ct_run_tests_from_testset " binary"
116
+ if [[ " $VERSION " != " 18" ]]; then
117
+ # This test is not available for NodeJS-18
118
+ # There is a traceback in NodeJS. It reached EOL support.
119
+ # npm ERR! gyp ERR! System Linux 6.9.12-200.fc40.x86_64
120
+ # npm ERR! gyp ERR! command "/usr/bin/node-18" "/usr/lib/node_modules_18/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
121
+ # npm ERR! gyp ERR! cwd /opt/app-root/src/node_modules/node-rdkafka
122
+ # npm ERR! gyp ERR! node -v v18.19.0
123
+ # npm ERR! gyp ERR! node-gyp -v v10.0.1
124
+ # npm ERR! gyp ERR! not ok
125
+ TEST_SET=${TESTS:- $TEST_LIST_BINARY } ct_run_tests_from_testset " binary"
126
+ fi
You can’t perform that action at this time.
0 commit comments