How to install guard-test with docker?

I am using rails, docker.

In my old application, there are some old methods and gems.

  • Multiple services to run on a container or multiple containers Docker?
  • Installing numpy on Docker Alpine
  • Compose two Docker image into one : NodeJS and MongoDB
  • Pycharm 2016.1.4 (newest) and Docker issue
  • ACL on Docker overlay network
  • In dockerfile after create or copy file or directory in RUN statement it not/doesn't exists
  • In my Gemfile, I added
    group :development, :test do
    gem ‘guard-test’, github: ‘guard/guard-test’
    end

    Then run docker-compose build and docker-compose up, the error message is:

    sidekiq_1 | /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git/git_proxy.rb:155:in `allowed_in_path': The git source git://github.com/guard/guard-test.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git/git_proxy.rb:47:in `revision'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:215:in `revision'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:85:in `install_path'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/path.rb:110:in `expanded_path'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/path.rb:132:in `load_spec_files'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:188:in `load_spec_files'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/path.rb:92:in `local_specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:159:in `specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:550:in `block in converge_locked_specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:539:in `each'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:539:in `converge_locked_specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:195:in `resolve'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:140:in `specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:185:in `specs_for'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:174:in `requested_specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/environment.rb:18:in `requested_specs'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/runtime.rb:13:in `setup'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler.rb:127:in `setup'
    sidekiq_1 |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/setup.rb:18:in `<top (required)>'
    sidekiq_1 |     from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    sidekiq_1 |     from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    web_1     | /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git/git_proxy.rb:155:in `allowed_in_path': The git source git://github.com/guard/guard-test.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git/git_proxy.rb:47:in `revision'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:215:in `revision'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:85:in `install_path'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/path.rb:110:in `expanded_path'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/path.rb:132:in `load_spec_files'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:188:in `load_spec_files'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/path.rb:92:in `local_specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/source/git.rb:159:in `specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:550:in `block in converge_locked_specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:539:in `each'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:539:in `converge_locked_specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:195:in `resolve'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:140:in `specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:185:in `specs_for'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/definition.rb:174:in `requested_specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/environment.rb:18:in `requested_specs'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/runtime.rb:13:in `setup'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler.rb:127:in `setup'
    web_1     |     from /usr/local/bundle/gems/bundler-1.10.6/lib/bundler/setup.rb:18:in `<top (required)>'
    web_1     |     from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    web_1     |     from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    testapp_sidekiq_1 exited with code 1
    testapp_web_1 exited with code 1
    

    What’s meaning about that?

  • Why “https://get.docker.com/ubuntu” is a apt repository?
  • docker-machine env default | eval “$(docker-machine env default)” | unable to run command docker
  • docker 1.12 swarm : Does Swarm have a configuration store like kubernetes configMap
  • docker and composer install
  • How does docker manage hashes for forking of docker images?
  • How to put sidekiq into Docker in a rails application?
  • One Solution collect form web for “How to install guard-test with docker?”

    You need to run bundle install in your Docker container.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.