great_expectations_action icon indicating copy to clipboard operation
great_expectations_action copied to clipboard

great_expectations_action build docker image is failing with incompatible Node.js version

Open sravantit25 opened this issue 2 years ago • 1 comments

I am trying to use great_expectations_action to run a simple checkpoint. I found that the action is failing while building Docker image. The error is:

Step 1/9 : FROM greatexpectations/great_expectations:python-3.7-buster-ge-0.12.0 ---> e5c5ee9ede63 Step 2/9 : RUN apt-get update && apt-get install curl nodejs -y ---> Using cache ---> ecb9bf2e6646 Step 3/9 : RUN curl -L https://npmjs.org/install.sh | bash ---> Running in c749f0012987 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 3755 100 3755 0 0 17224 0 --:--:-- --:--:-- --:--:-- 17224 **fetching: https://registry.npmjs.org/npm/-/npm-8.9.0.tgz removing existing npm ERROR: npm is known not to run on Node.js v10.24.0 You'll need to upgrade to a newer Node.js version in order to use this version of npm. You can find the latest version at https://nodejs.org/ failed! The command '/bin/sh -c curl -L https://npmjs.org/install.sh | bash' returned a non-zero code: 1

Error: Docker build failed with exit code 1**

ge_action_error_msg_summary

ge_action_error_msg_detail

sravantit25 avatar May 09 '22 16:05 sravantit25

I fixed this issue by upgrading Node.js to the latest LTS version.

PR: https://github.com/great-expectations/great_expectations_action/pull/80

sravantit25 avatar May 09 '22 16:05 sravantit25