Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image build step failing in CI due to node version incompatibility #2022

Open
dcroote opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@dcroote
Copy link
Contributor

dcroote commented Sep 19, 2024

The docker image build step in CI has been failing e.g. since c43d981 due to a node version incompatibility with a package:

#5 22.58 error [email protected]: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "18.19.1"
#5 22.59 error Found incompatible module.

At the time, my quick Discord suggestion, which worked but was a hack, was below. The actual solution to this is to get Airnode working with Node.js 20, though that hasn't been straightforward (#1920)



Now yarn provides a way to ignore engines: --ignore-engines
To enable this for the Docker files being built, go into each of the following 3 Docker files:

./packages/airnode-node/docker/Dockerfile
./packages/airnode-deployer/docker/Dockerfile
./packages/airnode-admin/docker/Dockerfile

and add --ignore-engines to the end of the line in each starting with yarn global add (but add it before the && \ of course)

Then, run yarn docker:build:latest (this, importantly, rebuilds the packaging container first, which is necessary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant