This will create a whole bunch of node-xx version docker images preloaded with the official Joplin 3.1.24 tarball. Then, we'll try to build it.
Currently, I've tested the build with node 18 19 20 21 22 and 23.
Canvas is seemingly not building on node 20+, this is to validate that theory. See: Automattic/node-canvas#2448
I'll post the results later... my laptop takes about 20 minutes per build, so see you in a few hours.
$ openssl s_client -showcerts codeload.github.com:443 &> github.cer
Put it next to the Dockerfile here.
I really just kept the CERT parts and not the comments.. YMMV.
$ ./create-node-dirs.sh
. . .
$ ./build-joplin-all-images.sh
. . .
I really don't understand the inconsistencies around this build. If I look at it wrong, Joplin doesn't seem to build.
I used this to build Joplin a few times in all these versions and it looks like only node 23 seems to fail consistently for me.
Yet, if i just build canvas with yarn -- it builds on all node versions perfectly. 🤔