BewareMyPower commented on code in PR #288:
URL: 
https://github.com/apache/pulsar-client-node/pull/288#discussion_r1072132122


##########
pkg/linux/Dockerfile_linux_glibc:
##########
@@ -17,15 +17,19 @@
 # under the License.
 #
 
-ARG NODE_VERSION
+FROM centos:7
 
-FROM node:${NODE_VERSION}-buster
+RUN yum update -y
+RUN yum install -y gcc gcc-c++ make python3
 
-RUN apt-get update -y && \
-     apt-get install -y \
-        curl \
-        g++ \
-        make \
-        python3
+ARG ARCH
+WORKDIR /app
+RUN SUFFIX=$(echo ${ARCH} | sed 's/86_//') && \
+  echo $SUFFIX && \
+  curl -O -L 
https://nodejs.org/download/release/v16.19.0/node-v16.19.0-linux-$SUFFIX.tar.gz 
&& \

Review Comment:
   Node.js 18 might not work on CentOS 7 because of the GLIBCXX compatibility. 
And the workflow also verified it works for higher version Node.js.
   
   It's an inconsistency between glibc and musl Linux systems. I think we can 
refactor the Dockerfile later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to