zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.38k stars 980 forks source link

fix: use nodejs-lts image for building frontend code #2653

Closed macedigital closed 5 months ago

macedigital commented 5 months ago

Node v14 is end-of-life and should no longer be used. Commit changes Makefile to pull in latest node-lts instead.

Also, use local temporary folder for storing npm generated files to workaround permission issue with old npm version, e.g. emitting these errors:

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /.npm
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.

Both changes should also fix issue https://github.com/zalando/postgres-operator/issues/2651

FxKu commented 5 months ago

:+1:

macedigital commented 5 months ago

:+1:

FxKu commented 5 months ago

:+1: