ruby - Running Rails application in docker container -


i want run rails 4.2.1 application in docker container on debian machine.

when run bundle exec rails s got error:

could not find json-1.7.7 in of sources run `bundle install` install missing gems. 

when run bundle install got error:

gem::ext::builderror: error: failed build gem native extension.

/usr/local/rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150604-137-10l84fa.                                                                                              rb extconf.rb creating makefile  make "destdir=" clean  make "destdir=" compiling generator.c in file included generator.c:1:0: ../fbuffer/fbuffer.h: in function 'fbuffer_to_s': ../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments,                                                                                                   1 given  value result = rb_str_new(fbuffer_pair(fb));                                            ^ ../fbuffer/fbuffer.h:175:20: warning: initialization makes integer pointer                                                                                             without cast  value result = rb_str_new(fbuffer_pair(fb));                 ^  makefile:237: recipe target 'generator.o' failed   make: *** [generator.o] error 1    make failed, exit code 2   gem files remain installed in /var/www/test/xyz/vendor/bundle/ruby/2                                                                                              .2.0/gems/json-1.7.7 inspection. results logged /var/www/test/xyz/vendor/bundle/ruby/2.2.0/extensions/x                                                                                                86_64-linux/2.2.0/json-1.7.7/gem_make.out error occurred while installing json (1.7.7), , bundler cannot continue. make sure `gem install json -v '1.7.7'` succeeds before bundling. 

whats going wrong? can now?

docker-rails project created make rails docker (and ci) very easy. think can , reduce amount of configuration necessary , running rails on docker.

it creates global shared gem volume (to speed bundler), , has sample dockerfile use.

given native error, i'm guessing dockerfile missing needed package, may need update apt-get statements.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -