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

avantgardner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git


The following commit(s) were added to refs/heads/main by this push:
     new b70b372c Fix nodejs issues in Docker build (#731)
b70b372c is described below

commit b70b372c1562b82c910144dd88cd5da6c696a3bc
Author: Jad Naous <[email protected]>
AuthorDate: Mon May 29 12:01:32 2023 -0400

    Fix nodejs issues in Docker build (#731)
    
    Co-authored-by: Jad Naous <[email protected]>
---
 ballista/scheduler/ui/package.json     | 4 ++--
 dev/docker/ballista-builder.Dockerfile | 7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ballista/scheduler/ui/package.json 
b/ballista/scheduler/ui/package.json
index fa2462c1..51bb0bd8 100644
--- a/ballista/scheduler/ui/package.json
+++ b/ballista/scheduler/ui/package.json
@@ -28,8 +28,8 @@
     "web-vitals": "^1.0.1"
   },
   "scripts": {
-    "start": "react-scripts start",
-    "build": "react-scripts build",
+    "start": "react-scripts --openssl-legacy-provider start",
+    "build": "react-scripts --openssl-legacy-provider build",
     "test": "react-scripts test",
     "eject": "react-scripts eject"
   },
diff --git a/dev/docker/ballista-builder.Dockerfile 
b/dev/docker/ballista-builder.Dockerfile
index 8ae2c22c..d66a0389 100644
--- a/dev/docker/ballista-builder.Dockerfile
+++ b/dev/docker/ballista-builder.Dockerfile
@@ -24,8 +24,11 @@ ENV RUST_BACKTRACE=full
 ENV DEBIAN_FRONTEND=noninteractive
 
 RUN apt-get update && \
-    apt-get -y install libssl-dev openssl zlib1g zlib1g-dev libpq-dev cmake 
protobuf-compiler netcat curl unzip \
-    nodejs npm && \
+    apt-get -y install libssl-dev openssl zlib1g zlib1g-dev libpq-dev cmake 
protobuf-compiler netcat curl unzip
+
+RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
+    apt-get update && \
+    apt-get install -y nodejs && \
     npm install -g yarn
 
 # create build user with same UID as 

Reply via email to