Open stevejalim opened 4 years ago
@peterbe @escattone @Gregoor @schalkneethling - if any of you have seen this issue before (am assuming Kuma or Yari might also be using Dockerised node-alpine) I'd welcome any pointers!
@callahad Looked into this for Kuma and wasn't it a problem that node-gyp expects there to be a python version that is <3.8
.
Ah, is that inside the Docker image or on the host? It looks like the latter, but am not 100%
Either way, default/py2 is 2.7.15, while py3 is 3.7.3, so that should be fine. Strange.
Search for node-gyp in the Kuma repo to turn up an explanation; too sick to go do that myself :(
Iirc, node-gyp only supports Py2
On Wed, Mar 11, 2020, 14:22 Steve Jalim notifications@github.com wrote:
Ah, is that inside the Docker image or on the host? It looks like the latter, but am not 100%
Either way, default/py2 is 2.7.15, while py3 is 3.7.3, so that should be fine. Strange.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mdn/developer-portal/issues/1219#issuecomment-597663154, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5AM475IEL6KY7EWMMZTRG6NDFANCNFSM4LFUPNQQ .
You don't have Python when you're building node-gyp.
It's exclusively just node-alpine
at that point.
That means you can't expect node-gyp
to compile its binaries so it'll fall back on the non-binary version of whatever needs it.
These kinds of problems would go away if we could use Docker base images that have both Node and Python in them. Kuma has that but it's also seems to cost us a bit since it needs do all the gpg stuff each time.
Ah that's interesting @peterbe . I guess it also suggests that this NEVER worked, then....
After bumping to node 12.16.1 I noticed that node-gyp was failing to build, and - indeed - because it's a non-fatal build issue, the cached version of the docker image/shard may well have not been building correctly for ages. Rolling back to 12.14 and doing a full rebuild shows the same kind of error.
Am [now] building on MacOS Catalina 10.15.3, but still using bash as my shell, not zsh yet.
I don't think we need node-gyp for anything Node-related right now, but - naturally - it would be good to get this behaving correctly soon.
Relevant output: