$ git clone https://github.com/tenex/rails-assets.git
$ cd rails-assets/
Copy config/database.yml
and config/application.yml
.
The only relevant change is the db host.
$ docker-compose run --rm app bash
Inside app docker container
# bundle install && npm install
# bin/rake db:setup
# echo '{ "allow_root": true }' > /root/.bowerrc
# bin/rake 'component:convert[momentjs,2.22.2]'
Generating gemspec.rz for rails-assets-momentjs-2.22.2...
rake aborted!
NoMethodError: undefined method `abbreviate' for #<Gem::Indexer:0x000000066cd788>
/src/app/workers/reindex.rb:80:in `gemspec_rz'
Despite the undefined method abbreviate error, ./public/gems/rails-assets-momentjs-2.22.2.gem
is generated.
# gem unpack public/gems/rails-assets-momentjs-2.22.2.gem
Will leave the rails-assets-momentjs-2.22.2
that can be vendored in your project.