@@ -1996,12 +1996,18 @@ def dockerfile(*args)
1996
1996
graalvm_version = graalvm_version . gsub ( /-b\d +\Z / , '' )
1997
1997
end
1998
1998
1999
+ check_post_install_message = [
2000
+ "RUN grep 'The Ruby openssl C extension needs to be recompiled on your system to work with the installed libssl' install.log" ,
2001
+ "RUN grep '/jre/languages/ruby/lib/truffle/post_install_hook.sh' install.log"
2002
+ ]
2003
+
1999
2004
case install_method
2000
2005
when :public
2001
2006
lines . push "RUN curl -OL https://github.com/oracle/graal/releases/download/vm-#{ public_version } /graalvm-ce-#{ public_version } -linux-amd64.tar.gz"
2002
2007
lines . push "RUN tar -zxf graalvm-ce-#{ public_version } -linux-amd64.tar.gz"
2003
2008
lines . push "ENV D_GRAALVM_BASE=/test/graalvm-ce-#{ public_version } "
2004
- lines . push "RUN $D_GRAALVM_BASE/bin/gu install org.graalvm.ruby"
2009
+ lines . push "RUN $D_GRAALVM_BASE/bin/gu install org.graalvm.ruby | tee install.log"
2010
+ lines . push ( *check_post_install_message )
2005
2011
lines . push "ENV D_RUBY_BASE=$D_GRAALVM_BASE/jre/languages/ruby"
2006
2012
lines . push "ENV D_RUBY_BIN=$D_GRAALVM_BASE/bin"
2007
2013
lines . push "RUN PATH=$D_RUBY_BIN:$PATH $D_RUBY_BASE/lib/truffle/post_install_hook.sh" if run_post_install_hook
@@ -2014,7 +2020,8 @@ def dockerfile(*args)
2014
2020
lines . push "COPY #{ graalvm_component } /test/"
2015
2021
lines . push "RUN tar -zxf #{ graalvm_tarball } "
2016
2022
lines . push "ENV D_GRAALVM_BASE=/test/graalvm-#{ graalvm_version } "
2017
- lines . push "RUN $D_GRAALVM_BASE/bin/gu install --file /test/#{ graalvm_component } "
2023
+ lines . push "RUN $D_GRAALVM_BASE/bin/gu install --file /test/#{ graalvm_component } | tee install.log"
2024
+ lines . push ( *check_post_install_message )
2018
2025
lines . push "ENV D_RUBY_BASE=$D_GRAALVM_BASE/jre/languages/ruby"
2019
2026
lines . push "ENV D_RUBY_BIN=$D_GRAALVM_BASE/bin"
2020
2027
lines . push "RUN PATH=$D_RUBY_BIN:$PATH $D_RUBY_BASE/lib/truffle/post_install_hook.sh" if run_post_install_hook
0 commit comments