Questions tagged bundler

Explore the latest questions and answers asked by our top developers.

Docker-compose and rails console issue. ‘Could not find rake-13.0.6 in any of the sources’

I’m having some issues when trying to run rails console under docker. All other rails commands work as expected, but console does not. ➜ octopus git:(master) ✗ docker-compose run web bundle exec rails c Creating octopus_web_run … done Could not find rake-13.0.6 in any of the sources Run `bundle install` to install missing gems. ERROR: […]

By ngelx
Categorised as bundler, docker, docker-compose, ruby, ruby-on-rails Tagged , , , ,

How can I copy installed gems from between Docker stages?

I have a Dockerfile which I’m trying to make multi-staged. It looks something like this: FROM <image> AS build-step RUN bundle install FROM <image> COPY –from=build-step $BUNDLE_INSTALL_PATH ./ Now I’m not sure what to use for the BUNDLE_INSTALL_PATH. What’s the cleanest way to copy over bundle installs from one stage to another? Source: Docker Questions

By Zahin Zaman
Categorised as bundler, docker, dockerfile, ruby, rubygems Tagged , , , ,

bundle conflict with ruby default gems

I’m make a rails server env in Docker. the docker file like this : FROM ruby:2.6.3-buster … ADD Gemfile /app/Gemfile ADD Gemfile.lock /app/Gemfile.lock RUN gem install bundler -v 2.1.4 RUN gem install rake -v 13.0.1 RUN pwd RUN bundle install # –full-index CMD ["/bin/bash","./"] then I go into container to test: [email protected]:/app# bundle exec rails […]

By user2305921
Categorised as bundler, docker, ruby-on-rails Tagged , ,

Using a Docker image to run bundle install ignores bundle config setting

I’m hoping to use a Docker image (ruby:3.0) build an image without (eventually) having to have Ruby installed locally. For testing purposes, I have Ruby 2.7.0 installed in Windows 10 WSL2 environment: $ ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] I have a Gemfile: source ‘’ gem ‘sinatra’ group :development, :test do gem ‘thin’ […]

By Craig
Categorised as bundler, docker, ruby, rubygems Tagged , , ,

docker ruby 2.3.1 could not find bundler

I am trying to setup an old ruby project on a brand new macbook and this is the output i’m getting from this command docker/dc up: I’m trying to start the project fresh and i’ve been running into issues with getting it all stood up. I’ve worked through a bunch of the issues and i’m […]

By ryanpitts1
Categorised as bundler, docker, ruby Tagged , ,

Docker image stuck on bundling

I’ve been trying to build my Docker image: docker build -t <tag> -f Dockerfile.production . However, this hangs while bundling. I have tried bundling with: DEBUG_RESOLVER=true bundle install –verbose Running bundle on my host machine works fine – only the Docker image has this problem. Attached is my Dockerfile: FROM cimg/ruby:2.7.4-node LABEL [email protected] SHELL ["/bin/bash", […]

By Overload119
Categorised as bundler, docker, ruby-on-rails Tagged , ,

Dockfile image build failing due to bundler issues and GemNotFoundException

The docker image "web" seems to fail as the image is built with the following error code: web_1 | Traceback (most recent call last): web_1 | 2: from /usr/local/bin/bundle:23:in `<main>’ web_1 | 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path’ web_1 | /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe’: Could not find ‘bundler’ (2.2.24) required by your /prospector/Gemfile.lock. (Gem::GemNotFoundException) web_1 | To update to […]

By stuckNconfuzed
Categorised as bundler, docker, ruby, rubygems Tagged , , ,

Dockerizing Existing Rails Application

I’ve been trying to move my rails app into a docker container, as it used to be ansible managed in a virtualbox for dev env. I’ve looked at a few docker tutorials and a couple specific to migrating rails applications but I am running into the following error: => ERROR [10/10] RUN rails c 0.9s […]

By Matt Matero
Categorised as bundler, docker, ruby, ruby-on-rails, rubygems Tagged , , , ,

Qemu error when running gem install bundler on Docker with Apple Silicon M1

When I run docker-compose up I’m getting the following error qemu: uncaught target signal 6 (Aborted) – core dumped This is happening when docker-compose is running the command bundle install => ERROR [5/6] RUN bundle install –jobs 4 –path .bundle/ 4.2s —— > [5/6] RUN bundle install –jobs 4 –path .bundle/: #10 4.170 Fetching gem […]

The path `/app/include/engine` does not exist. (Bundler::PathError)

I am dockerizing my rails app with the mountable engine. But I am constantly getting one error while running the image The path `/app/include/engine` does not exist. The image is successfully built but while running docker-compose up it throws an error of the path. Below I am attching my Dockerfile and docker-compose.yml Dockerfile FROM ruby:2.4.1 […]

1 2

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us