Conversation
|
Great idea! I'll review and merge shortly. |
|
I've been using jruby with asdf (and now mise The "normal" way to make most JVM ecosystem kind of stuff work with the canonical asdf java plugin was to use one of the Just my two cents. |
|
@ylecuyer Maybe take a look into using |
|
As far as I understand the problem with set-java-home is that it relies on a bash PROMPT_COMMAND or other shells pre command hooks. And there is none for sh which is the default shell in a Dockerfile Even when wrapping the RUN into a |
|
Having done it before, if you're trying to use asdf inside docker, you're at the edge of what is 'normal' use, especially of asdf given its shim-based design. Personally im not sure that such a use case should motivate changing JRuby itself. There are too many different tools, shells and approaches to version management, and I don't believe this type of automation is asdf's primary goal. Your docker file could as easily call |
Hello,
Little PR to add asdf support. Asdf has its java command in
/home/ylecuyer/.asdf/shims/javabut the real jdk is in/home/ylecuyer/.asdf/installs/java/openjdk-17/bin/javaso doingjava_command/../../to get the jdk doesn't workInstead it uses
asdf which javawhich points to the correct pathSee repro with this Dockerfile
Without the patch:
With the patch: