File tree Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ $ jt docker print --fedora28 --source --rvm
30
30
Or, to run a full set of tests on a set of new release candidate tarballs:
31
31
32
32
``` bash
33
- $ jt docker test --graalvm graalvm-ce.tar.gz ruby-installable.jar --test release_branch
34
- $ jt docker test --graalvm graalvm-ee.tar.gz ruby-installable.jar --test release_branch
35
- $ jt docker test --graalvm graalvm-ee.tar.gz ruby-installable.jar --rebuild-images --test release_branch
33
+ $ jt docker test --graalvm graalvm-ce.tar.gz ruby-installable-ce .jar --test release_branch
34
+ $ jt docker test --graalvm graalvm-ee.tar.gz ruby-installable-ee .jar --test release_branch
35
+ $ jt docker test --graalvm graalvm-ee.tar.gz ruby-installable-ee .jar --rebuild-images native-image-installable-ee.jar --test release_branch
36
36
$ jt docker test --standalone truffleruby-linux-amd64.tar.gz --test release_branch
37
37
```
38
38
@@ -74,7 +74,7 @@ Pick any of:
74
74
## Other options
75
75
76
76
* Print the Dockerfile rather than building it, ` print ` instead of ` build `
77
- * Rebuild images after installing the Ruby component, ` --rebuild-images `
77
+ * Rebuild ` polyglot ` and ` libpolyglot ` images after installing the Ruby component, ` --rebuild-images `
78
78
* Run a full set of Docker tests we care about, ` test ` instead of ` build `
79
79
* Use a custom TruffleRuby repo, ` --repo url `
80
80
* Do not rebuild ` openssl ` , to test error messages, ` --no-rebuild-openssl `
Original file line number Diff line number Diff line change @@ -56,19 +56,15 @@ You can also download the Ruby component (`ruby-installable-...`) manually from
56
56
https://github.com/oracle/truffleruby/releases . Then install it with
57
57
` gu install --file path/to/ruby-installable-... ` .
58
58
59
- If you install Ruby into the Enterprise Edition of GraalVM, you should then
60
- rebuild the Ruby executable images using the runtime from the Enterprise
61
- Edition. The version of the Ruby executable images you install by default uses
62
- the Community Edition runtime until you rebuild.
59
+ If you are installing Ruby into GraalVM EE then you need to download the Ruby
60
+ EE installable from OTN and install using ` --file ` in the same way.
63
61
64
- To get the best performance you want to rebuild the images. Check that `ruby
65
- --version` reports that you are running ` GraalVM EE` rather than ` GraalVM CE`.
66
-
67
- Rebuilding the executable images can take a few minutes and you should have
68
- about 8 GB of RAM available.
62
+ After installing Ruby you may want to rebuild other images so that they can
63
+ use the new language. Rebuilding the executable images can take a few minutes
64
+ and you should have about 10 GB of RAM available.
69
65
70
66
``` bash
71
- $ gu rebuild-images ruby
67
+ $ gu rebuild-images polyglot libpolyglot
72
68
```
73
69
74
70
## Using a Ruby package manager
Original file line number Diff line number Diff line change @@ -2078,6 +2078,7 @@ def dockerfile(*args)
2078
2078
source_branch = args . shift
2079
2079
when '--rebuild-images'
2080
2080
rebuild_images = true
2081
+ native_component = args . shift
2081
2082
when '--no-rebuild-openssl'
2082
2083
rebuild_openssl = false
2083
2084
when '--no-manager'
@@ -2199,7 +2200,11 @@ def dockerfile(*args)
2199
2200
2200
2201
if rebuild_images
2201
2202
if [ :public , :graalvm ] . include? ( install_method )
2202
- lines . push "RUN #{ graalvm_base } /bin/gu rebuild-images ruby"
2203
+ FileUtils . copy native_component , docker_dir
2204
+ native_component = File . basename ( native_component )
2205
+ lines . push "COPY #{ native_component } /test/"
2206
+ lines . push "RUN #{ graalvm_bin } /gu install --file /test/#{ native_component } | tee install.log"
2207
+ lines . push "RUN #{ graalvm_base } /bin/gu rebuild-images polyglot libpolyglot"
2203
2208
else
2204
2209
abort "can't rebuild images for a build not from public or from local GraalVM components"
2205
2210
end
You can’t perform that action at this time.
0 commit comments