File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2001,7 +2001,11 @@ def dockerfile(*args)
2001
2001
graalvm_component = File . basename ( graalvm_component )
2002
2002
lines . push "COPY #{ graalvm_tarball } /test/"
2003
2003
lines . push "COPY #{ graalvm_component } /test/"
2004
- graalvm_version = /\d +(\. \d +)*(-rc\d +)?(\- dev)?(-\h +)?/ . match ( graalvm_tarball ) . to_s
2004
+ graalvm_version = /([ce]e-)?\d +(\. \d +)*(-rc\d +)?(\- dev)?(-\h +)?/ . match ( graalvm_tarball ) . to_s
2005
+
2006
+ # Test build tarballs may have a -bn suffix, which isn't really part of the version string but matches the hex part in some cases
2007
+ graalvm_version = graalvm_version . gsub ( /-b\d +\Z / , '' )
2008
+
2005
2009
lines . push "RUN tar -zxf #{ graalvm_tarball } "
2006
2010
lines . push "ENV D_GRAALVM_BASE=/test/graalvm-#{ graalvm_version } "
2007
2011
lines . push "RUN $D_GRAALVM_BASE/bin/gu install --file /test/#{ graalvm_component } "
You can’t perform that action at this time.
0 commit comments