heroku / docker-ruby

Ruby image for the heroku-docker project
17 stars 30 forks source link

Problem building rails 3 sample #1

Open friism opened 9 years ago

friism commented 9 years ago
/app/heroku/ruby/bundle/ruby/2.2.0/gems/activesupport-3.2.19/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now
/app/heroku/ruby/bundle/ruby/2.2.0/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/configuration/default_source.rb:675: warning: duplicated key at line 987 ignored: :disable_mongo
/app/heroku/ruby/ruby-2.2.2/bin/ruby /app/heroku/ruby/bundle/ruby/2.2.0/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
/app/heroku/ruby/bundle/ruby/2.2.0/gems/activesupport-3.2.19/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now
/app/heroku/ruby/bundle/ruby/2.2.0/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/configuration/default_source.rb:675: warning: duplicated key at line 987 ignored: :disable_mongo
rake aborted!
LoadError: Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
/app/heroku/ruby/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/rubygems_integration.rb:263:in `block in replace_gem'

Building this app: https://github.com/memcachier/examples-rails

Can that be mended?

friism commented 9 years ago

(I know that it'll fall over later due to mandatory precompile)

hone commented 9 years ago

@friism talked about this on hipchat, but just wanted to circle back around. This is b/c we don't create a config/databse.yml which is required for Rails < 4.1. Without conditional programming support in Dockerfile, we'll need to resort to bash or something else to do it.

friism commented 9 years ago

Roger.

https://docs.docker.com/compose/rails/

hone commented 9 years ago

@friism it doesn't even mention compiling assets at all?

pirhoo commented 8 years ago

Hey guys,

did you find a solution for this? I still have the problem... My only workaround was to clone this Dockerfile and add a RACK_ENV variable manually.

Edit: I'm using Rails 4.2.5.