This is an automated email from the ASF dual-hosted git repository.

baodi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git


The following commit(s) were added to refs/heads/master by this push:
     new f32953c  [fix] not compatible with alpine 3.15 env (#304)
f32953c is described below

commit f32953cfd4c2b1b79b7b64ad49aaf51e6c9d3f7b
Author: Baodi Shi <[email protected]>
AuthorDate: Fri Mar 10 11:59:22 2023 +0800

    [fix] not compatible with alpine 3.15 env (#304)
---
 .github/workflows/ci-pr-validation.yml | 8 +++++++-
 pkg/linux/Dockerfile_linux_musl        | 2 +-
 tests/load-test.sh                     | 2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci-pr-validation.yml 
b/.github/workflows/ci-pr-validation.yml
index db1c8bc..0c61118 100644
--- a/.github/workflows/ci-pr-validation.yml
+++ b/.github/workflows/ci-pr-validation.yml
@@ -167,7 +167,7 @@ jobs:
           docker run -i -v $PWD:/pulsar-client-node build:latest \
               /pulsar-client-node/pkg/linux/build-napi-inside-docker.sh
 
-      - name: Test NAPI file in other containers
+      - name: Test NAPI file in linux_glibc containers
         if: matrix.image == 'linux_glibc'
         run: |
           ./tests/load-test.sh node:16-buster ${{matrix.cpu.platform}}
@@ -175,6 +175,12 @@ jobs:
           ./tests/load-test.sh node:19-buster ${{matrix.cpu.platform}}
           ./tests/load-test.sh node:19-bullseye ${{matrix.cpu.platform}}
 
+      - name: Test NAPI file in linux_musl containers
+        if: matrix.image == 'linux_musl'
+        run: |
+          ./tests/load-test.sh node:18-alpine3.15 ${{matrix.cpu.platform}}
+          ./tests/load-test.sh node:16-alpine3.15 ${{matrix.cpu.platform}}
+
   windows-napi:
     name: Build NAPI windows - Node ${{matrix.nodejs}} - ${{matrix.arch}}
     runs-on: windows-2022
diff --git a/pkg/linux/Dockerfile_linux_musl b/pkg/linux/Dockerfile_linux_musl
index c5b7eb7..e1f2017 100644
--- a/pkg/linux/Dockerfile_linux_musl
+++ b/pkg/linux/Dockerfile_linux_musl
@@ -19,7 +19,7 @@
 
 ARG NODE_VERSION
 
-FROM node:${NODE_VERSION}-alpine
+FROM node:${NODE_VERSION}-alpine3.15
 
 RUN apk add \
       bash \
diff --git a/tests/load-test.sh b/tests/load-test.sh
index 47d9c54..da63942 100755
--- a/tests/load-test.sh
+++ b/tests/load-test.sh
@@ -38,6 +38,6 @@ cd $ROOT_DIR
 git archive -o pulsar-client-node.tar.gz HEAD
 
 docker run --platform $PLATFORM -v $PWD:/pulsar-client-node $IMAGE \
-    /bin/bash /pulsar-client-node/tests/docker-load-test.sh
+    sh /pulsar-client-node/tests/docker-load-test.sh
 
 rm pulsar-client-node.tar.gz

Reply via email to