metanorma / metanorma-docker

Docker container for running the Metanorma toolchain
https://www.metanorma.com
5 stars 3 forks source link

Add Alpine version of container (linux/amd64) #143

Closed ronaldtse closed 2 years ago

ronaldtse commented 2 years ago

Add Alpine version of container (linux/amd64), fixes #143

ronaldtse commented 2 years ago

Metanorma on alpine is failing because of this:

irb(main):001:0> require 'metanorma'
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.                                                                                     
=> true                                                                                         
irb(main):002:0> require 'metanorma-iso'
/usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/parser.rb:5:in `require_relative': cannot load such file -- /usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/express_parser (LoadError)                   
        from /usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/parser.rb:5:in `rescue in <top (required)>'
        from /usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/parser.rb:1:in `<top (required)>'
        from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express/parsers/exp.rb:4:in `require'
        from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express/parsers/exp.rb:4:in `<top (required)>'
        from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express.rb:4:in `require'   
        from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express.rb:4:in `<top (required)>'
        from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml/parser.rb:1:in `require'            
        from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml/parser.rb:1:in `<top (required)>'   
        from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml.rb:2:in `require'                   
        from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml.rb:2:in `<top (required)>'          
        from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb:6:in `require'
        from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb:6:in `<top (required)>'
        from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma-plugin-lutaml.rb:2:in `require'
    from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma-plugin-lutaml.rb:2:in `<top (required)>'
    from /usr/local/bundle/gems/metanorma-standoc-2.0.5.3/lib/metanorma/standoc/macros.rb:14:in `require'
    from /usr/local/bundle/gems/metanorma-standoc-2.0.5.3/lib/metanorma/standoc/macros.rb:14:in `<top (required)>'
    ... 13 levels...
/usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/parser.rb:3:in `require_relative': Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/3.1/express_parser.so) - /usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/3.1/express_parser.so (LoadError)
    from /usr/local/bundle/gems/expressir-1.2.1-x86_64-linux/lib/expressir/express/parser.rb:3:in `<top (required)>'
    from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express/parsers/exp.rb:4:in `require'
    from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express/parsers/exp.rb:4:in `<top (required)>'
    from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express.rb:4:in `require'
    from /usr/local/bundle/gems/lutaml-express-0.2.1/lib/lutaml/express.rb:4:in `<top (required)>'
    from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml/parser.rb:1:in `require'
    from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml/parser.rb:1:in `<top (required)>'
    from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml.rb:2:in `require'
    from /usr/local/bundle/gems/lutaml-0.7.4/lib/lutaml.rb:2:in `<top (required)>'
    from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb:6:in `require'
    from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb:6:in `<top (required)>'
    from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma-plugin-lutaml.rb:2:in `require'
    from /usr/local/bundle/gems/metanorma-plugin-lutaml-0.4.15/lib/metanorma-plugin-lutaml.rb:2:in `<top (required)>'
    from /usr/local/bundle/gems/metanorma-standoc-2.0.5.3/lib/metanorma/standoc/macros.rb:14:in `require'
    from /usr/local/bundle/gems/metanorma-standoc-2.0.5.3/lib/metanorma/standoc/macros.rb:14:in `<top (required)>'
    from /usr/local/bundle/gems/metanorma-standoc-2.0.5.3/lib/metanorma/standoc/converter.rb:16:in `require_relative'
    ... 12 levels...
irb(main):003:0> 
ronaldtse commented 2 years ago

Can run make build-metanorma-alpine to build container to test.

ronaldtse commented 2 years ago

The failure above is due to this: https://github.com/lutaml/expressir/issues/106

ronaldtse commented 2 years ago

Wow, Alpine is all passing and merged!