great-expectations / great_expectations_action

A GitHub Action that makes it easy to use Great Expectations to validate your data pipelines in your CI workflows.
MIT License
77 stars 11 forks source link

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

Open sravantit25 opened 2 years ago

sravantit25 commented 2 years ago

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 commented 2 years ago

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

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