drbobbeaty has quit [Read error: Connection reset by peer]
drbobbeaty has joined #jruby
rwilliams[m] has joined #jruby
Antiarc has quit [Ping timeout: 268 seconds]
<rwilliams[m]>
I'm using jruby with Docker/Docker compose and I'm wondering where to stick the "--dev" flag
<Jyrki[m]>
you can set it in the `JRUBY_OPTS` environment variable, at least that's what I tend to do...
<rwilliams[m]>
so something like web:
<rwilliams[m]>
environment:
<rwilliams[m]>
- JRUBY_OPTS="--dev"
<Jyrki[m]>
yep (or whatever the syntax for docker-compose is)
<rwilliams[m]>
gotcha
<rwilliams[m]>
i'll give that a whirle
<rwilliams[m]>
Hmm I get "Error: Could not find or load main class "-Xcompile.invokedynamic=false"
<rwilliams[m]>
When i try to run rails routes
Antiarc has joined #jruby
nirvdrum has joined #jruby
<rwilliams[m]>
So rails routes with --dev "rails routes 18.97s user 4.24s system 155% cpu 14.929 total" It's like 22s without --dev. Is this normal? Also i tried drip and theine with out getting either to work.
<rwilliams[m]>
I also noticed rbenv uses Java Hotspot and the official jruby docker image uses OpenJDK, is this why the ---dev flag fails on the docker image?
drbobbeaty has quit [Read error: Connection reset by peer]
drbobbeaty has joined #jruby
nirvdrum has quit [Remote host closed the connection]
_whitelogger has joined #jruby
<headius[m]>
Shouldn't make any difference there
<headius[m]>
You are seeing those times on what kind of system?
<rwilliams[m]>
Ubuntu 18.04 on WSL2
<headius[m]>
The error you got about invokedynamic would mean it was passed to the Java command, not to JRuby
<headius[m]>
Hmmm ok wsl, I have not tried that myself yet
<rwilliams[m]>
WSL2 actually has a full linux kernel and seems pretty fast for everything else
<headius[m]>
It does seem rather long, but I know many rails commands launch twice which can aggravate startup impact
<headius[m]>
Did you put it in env JRUBY_OPTS?
<rwilliams[m]>
yeah
<rwilliams[m]>
I guess i messed up the JRUBY_OPTS the first time around in my docker-compose. Now that it's working with --dev it takes 24 seconds for 'rails routes' via docker and it was 14 seconds when i ran it locally.