use asciidoc/asciidoctor on openshift

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

use asciidoc/asciidoctor on openshift

fiorenzo.pizza
Hi,

i started one post on openshift forum to enable asciidoc/asciidoctor on openshift:
https://www.openshift.com/forums/openshift/add-asciidocasciidoctor-on-openshift

I would like to integrate the asciidoctor-java-integration module on cms (https://github.com/giavacms/giavacms)  to generate web pages using asciidoc syntax, like github.

Some idea to do that?

I remember it was possibile on openshift to load linux shell commands if they are compatible with some rh version...


Am I wrong?

fiorenzo
Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

asotobu
Hi,

I have not tried, but with asciidoctor-java-integration project should work without any problem, have you tried to run a simple example there?
Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

fiorenzo.pizza
HI,

I've just tried to deploy a simple test webapp (my source code: https://github.com/fiorenzino/jsf-asciidoc) and got:

Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- asciidoctor
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) [jruby-complete-1.7.3.jar:]
        at RUBY.require(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at RUBY.(root)(<script>:2)

My war comes with the following WEB-INF libs:

WEB-INF/lib/jruby-complete-1.7.3.jar
WEB-INF/lib/asciidoctor-java-integration-0.1.3-SNAPSHOT.jar

Any ideas?

Fiorenzo

PS OPENSHIFT ruby version and env setting:

[duilio-j2flower.rhcloud.com log]\> gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.8
     - /var/lib/openshift/f437282d8aad4436bcc4999fa497217c/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

asotobu
I think that because Gem_Paths var is set, JRuby are finding gems on that path instead of inside the jar, maybe it would be more complex that we though. Can you unset this variable?
Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

fiorenzo.pizza
Hi,

i never used jruby/gem..

- Can you unset this variable?

how should I do it?

i found that post:
http://blog.nicksieger.com/articles/2009/01/10/jruby-1-1-6-gems-in-a-jar/

do you think it could be useful to resolve the problem?



Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

fiorenzo.pizza
Before I tried to load asciidoctor gem inside a separate jar (in WEB-INF/lib), and it doesn't work.

After I tried to create an uber jar with jruby+asciidoctor-gem  (in WEB-INF/lib) and it doesn't work:
ruby gem path wins on jruby.


i found another way:

http://blog.keksrolle.de/2011/05/05/how-to-add-new-gems-to-jruby-in-an-equinox-osgi-environment-or-how-to-set-jruby-home.html

any idea?
Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

LightGuardjp
Are you using the asciidoctor-java-integration?

Sent from Mailbox for iPhone


On Tue, May 7, 2013 at 6:10 PM, fiorenzo.pizza [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Before I tried to load asciidoctor gem inside a separate jar (in WEB-INF/lib), and it doesn't work.

After I tried to create an uber jar with jruby+asciidoctor-gem  (in WEB-INF/lib) and it doesn't work:
ruby gem path wins on jruby.


i found another way:

http://blog.keksrolle.de/2011/05/05/how-to-add-new-gems-to-jruby-in-an-equinox-osgi-environment-or-how-to-set-jruby-home.html

any idea?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/use-asciidoc-asciidoctor-on-openshift-tp183p189.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: use asciidoc/asciidoctor on openshift

asotobu
Hi,
Dan has tried with AS7 and had found some integration problems, so if you are using openshift with AS 7 (for example you can use Tomcat too), may be you are founding the same problem as Dan, this will require some research.

You can see the explanation here:

https://github.com/asciidoctor/asciidoctor-java-integration/issues/22