bundle install
is not an issue.
However, the therubyracer and v8 gem requires some patches/different version. Otherwise, the
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
does not finish, but break with a stack trace.
Purging temp files
abort:
==== JS stack trace =========================================
Security context: 0x3fd36f3d <JS Object>#0#
1: /* anonymous */ [<eval>:~56513] (this=0x3fd36fe5 <JS Global Object>#1#,data=0x4f74cec5 <JS Array[2]>#2#)
2: intersection [<eval>:57141] (this=0x4f74d431 <JS Object>#3#,argument=0x4f74ce7d <JS Object>#4#)
3: /* anonymous */ [<eval>:58617] (this=0x4f70b199 <an Object>#5#,_dereq_=0x4f70b0f1 <JS Function>#6#,module=0x4f70b1a5 <an Object>#7#,exports=0x4f70b199 <an Object>#5#)
4: arguments adaptor frame: 7->3
5: s [<eval>:~2] (this=0x3fd36fe5 <JS Global Object>#1#,o=591,u=0x3fd08091 <undefined>)
6: arguments adaptor frame: 1->2
7: /* anonymous */ [<eval>:2] (this=0x3fd36fe5 <JS Global Object>#1#,e=591)
stacktrace.txt (291 KB)
This seems to be the upstream bug: TheRubyRacer 0.12.1 Segmentation Fault · Issue #317 · cowboyd/therubyracer · GitHub
I posted recently a comment, but did not get a response.
Scaleway patches the Gemfile and Gemfile.lock in order to use local versions that have been downloaded from elsewhere: scaleway-discourse/Dockerfile at master · scaleway-community/scaleway-discourse · GitHub