File tree 4 files changed +6
-14
lines changed
4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ LABEL summary="$SUMMARY" \
49
49
help="For more information visit https://github.com/sclorg/s2i-nodejs-container"
50
50
51
51
# nodejs-full-i18n is included for error strings
52
- RUN INSTALL_PKGS="nodejs nodejs-nodemon nodejs-full-i18n npm findutils tar which" && \
52
+ RUN INSTALL_PKGS="nodejs$NODEJS_VERSION nodejs-nodemon nodejs$NODEJS_VERSION -full-i18n npm findutils tar which" && \
53
53
dnf -y --nodocs --setopt=install_weak_deps=0 install $INSTALL_PKGS && \
54
- node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
54
+ node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
55
55
dnf clean all && \
56
56
rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*
57
57
Original file line number Diff line number Diff line change @@ -52,11 +52,7 @@ 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
- ln -s /usr/bin/node-$NODEJS_VERSION /usr/bin/node && \
56
- ln -s /usr/bin/npm-$NODEJS_VERSION /usr/bin/npm && \
57
- ln -s /usr/bin/npx-$NODEJS_VERSION /usr/bin/npx && \
58
- ln -s /usr/lib/node_modules_18/nodemon /usr/lib/node_modules_$NODEJS_VERSION/nodemon && \
59
- node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
55
+ node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
60
56
rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*
61
57
62
58
#
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ 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++ git openssl-devel nodejs npm nodejs-nodemon nss_wrapper-libs which" && \
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" && \
58
58
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
59
59
rpm -V $INSTALL_PKGS && \
60
- node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
60
+ node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
61
61
dnf -y clean all --enablerepo='*'
62
62
63
63
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
Original file line number Diff line number Diff line change @@ -51,11 +51,7 @@ 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
- ln -s /usr/bin/node-$NODEJS_VERSION /usr/bin/node && \
55
- ln -s /usr/bin/npm-$NODEJS_VERSION /usr/bin/npm && \
56
- ln -s /usr/bin/npx-$NODEJS_VERSION /usr/bin/npx && \
57
- ln -s /usr/lib/node_modules_18/nodemon /usr/lib/node_modules_$NODEJS_VERSION/nodemon && \
58
- node -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
54
+ node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
59
55
dnf -y clean all --enablerepo='*'
60
56
61
57
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
You can’t perform that action at this time.
0 commit comments