ruby - How can I run Win32OLE calls from ubuntu? -


i have simple sinatra apps make use of ota com dll talking quality center.

i want move sites docker images, can host them on docker server.

it occurred me theoretically should able working strategic use of wine.

hint: remember reading somewhere win32ole working in ruby linux can install windows version of ruby using wine, run scripts through windows version of ruby.

https://www.ruby-forum.com/topic/88576 says

i've managed before. installed one-click installer under crossover office , used that. option installing msys, compiling ruby under that, , using ruby. in case need install/build another ruby under crossover environment.

and later

in end installed office 2000 crossover, used windows installer install windows ruby same bottle office. put following bash script in /usr/bin directory can run ruby files '#> wruby some_script.rb'

   ==/usr/bin/wruby    #!/usr/bin/env ruby    `/opt/cxofficebeta/bin/wine --bottle mybottle --cx-app ruby.exe #{argv.join(" ")}` 

i know nothing wine or crossover or bottles(?), i'm out of depth.

how this? dockerfile use base image like?

note: found docker images claim install wine (which may make starting point)

http://www.perlmonks.org/?node_id=430194 talks getting win32::ole working under ubuntu.

don't forget use user xx in dockerfile important use non privileged user in wine. find in registry.hub.docker.com several examples of wine such user.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -