Page MenuHomePhabricator

Update mathoid docker container
Closed, ResolvedPublic

Description

I could not get the mathoid docker container to build.
I found a workaround.

Error while running `docker build -t physikerwelt/mathoid . -f dist/Dockerfile

Step 7/9 : RUN npm install && npm dedupe
 ---> Running in 49599b8ed468
(node:8) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
npm WARN deprecated nsp@3.2.1: The Node Security Platform service is shutting down 9/30 - https://blog.npmjs.org/post/175511531085/the-node-security-platform-service-is-shutting

> librsvg@0.7.0 install /opt/service/node_modules/librsvg
> node-gyp rebuild

(node:55) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:55) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
make: Entering directory '/opt/service/node_modules/librsvg/build'
  CXX(target) Release/obj.target/rsvg/src/Rsvg.o



  CXX(target) Release/obj.target/rsvg/src/Enums.o
  CXX(target) Release/obj.target/rsvg/src/Autocrop.o
  SOLINK_MODULE(target) Release/obj.target/rsvg.node
  COPY Release/rsvg.node
make: Leaving directory '/opt/service/node_modules/librsvg/build'
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/opt/service/node_modules/svgo/node_modules/css-select/node_modules/css-what'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  svgo@1.1.1 { Error: ENOTEMPTY: directory not empty, rmdir '/opt/service/node_modules/svgo/node_modules/css-select/node_modules/css-what'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',

Event Timeline

I found a workaround and fixed it on https://github.com/physikerwelt/mathoid-server/tree/docker mainly https://github.com/physikerwelt/mathoid-server/commit/5287fc396fdb98811f1d421186c43f2fc893c970 was the trick. @dbarratt why is that not related to MediaWiki-Docker? Maybe math rendering without contacting the production server API is in the scope of the MediaWiki-Docker project

MediaWiki-Docker has to do specifically with https://hub.docker.com/_/mediawiki so unless I'm missing how this issue is related to that image?

Physikerwelt claimed this task.

one can also tag the node version one likes to use with wikimedia/nodejs. I think this a resonable workaround