Skip to content

Can't build docker image: Could not find 'bundler' #323

@azabost

Description

@azabost

Hey.

I wanted to try out shuttle for the first time. I followed the instructions in the readme to build it with Docker:

docker-compose build

and that command failed with the following error:

postgresql uses an image, skipping
redis uses an image, skipping
elasticsearch uses an image, skipping
mailcatcher uses an image, skipping
Building worker
[+] Building 51.1s (16/17)
 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 897B                                                                                                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 165B                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/ruby:2.4.6                                                                                                                                                                            2.7s
 => [auth] library/ruby:pull token for registry-1.docker.io                                                                                                                                                                              0.0s
 => [ 1/12] FROM docker.io/library/ruby:2.4.6@sha256:88ebc8192ac6e46360d524da6027e50c92c51d85a5bfed32a719e2dd5b32dd17                                                                                                                   18.5s
 => => resolve docker.io/library/ruby:2.4.6@sha256:88ebc8192ac6e46360d524da6027e50c92c51d85a5bfed32a719e2dd5b32dd17                                                                                                                      0.0s
 => => sha256:07e22c0e32c365346d86e060ce50638e3d5b41f8eef26fb78d41711f27adbf75 2.00kB / 2.00kB                                                                                                                                           0.0s
 => => sha256:2ea1f7804402db2da64e84a26bd591f41667ad69cd7f2a2c6106d9bb04dde260 9.98MB / 9.98MB                                                                                                                                           1.0s
 => => sha256:88ebc8192ac6e46360d524da6027e50c92c51d85a5bfed32a719e2dd5b32dd17 1.65kB / 1.65kB                                                                                                                                           0.0s
 => => sha256:20cb276e55efe5f14bc7acd0d9a1442a255f3d01479d945674307de820cd8005 7.67kB / 7.67kB                                                                                                                                           0.0s
 => => sha256:4ae16bd4778367b46064f39554128dd2fda2803a5747fddeff74059f353391c9 50.38MB / 50.38MB                                                                                                                                         3.7s
 => => sha256:bbab4ec87ac4f89eaabdf68dddbd1dd930e3ad43bded38d761b89abf9389a893 7.80MB / 7.80MB                                                                                                                                           0.8s
 => => sha256:96465440c20877524189ae75d361dd29e5d0df330a8dac9427f972b429fe0159 51.77MB / 51.77MB                                                                                                                                         2.8s
 => => sha256:6ac892e64b941f376c41f33aa31e39a69bbc457c5b9e436b5ecf451a6d4c651e 192.26MB / 192.26MB                                                                                                                                       6.5s
 => => sha256:1f85508cf3dd7cc0f7c1e1061fe70e7a26cad7db4df7193d753208f1896c738e 200B / 200B                                                                                                                                               3.1s
 => => sha256:460bea9a0e234880d805cb88dbd7180d8cd6823875847f3f0a97b0f5b1cf40f5 22.07MB / 22.07MB                                                                                                                                         4.5s
 => => sha256:94ee0e388e55f797fa5cee5e97dd80c05b6fd4d4464000649025f4e8e0a619e8 141B / 141B                                                                                                                                               3.9s
 => => extracting sha256:4ae16bd4778367b46064f39554128dd2fda2803a5747fddeff74059f353391c9                                                                                                                                                2.2s
 => => extracting sha256:bbab4ec87ac4f89eaabdf68dddbd1dd930e3ad43bded38d761b89abf9389a893                                                                                                                                                0.3s
 => => extracting sha256:2ea1f7804402db2da64e84a26bd591f41667ad69cd7f2a2c6106d9bb04dde260                                                                                                                                                0.2s
 => => extracting sha256:96465440c20877524189ae75d361dd29e5d0df330a8dac9427f972b429fe0159                                                                                                                                                2.6s
 => => extracting sha256:6ac892e64b941f376c41f33aa31e39a69bbc457c5b9e436b5ecf451a6d4c651e                                                                                                                                                7.6s
 => => extracting sha256:1f85508cf3dd7cc0f7c1e1061fe70e7a26cad7db4df7193d753208f1896c738e                                                                                                                                                0.0s
 => => extracting sha256:460bea9a0e234880d805cb88dbd7180d8cd6823875847f3f0a97b0f5b1cf40f5                                                                                                                                                0.6s
 => => extracting sha256:94ee0e388e55f797fa5cee5e97dd80c05b6fd4d4464000649025f4e8e0a619e8                                                                                                                                                0.0s
 => [internal] load build context                                                                                                                                                                                                        0.3s
 => => transferring context: 6.64MB                                                                                                                                                                                                      0.3s
 => [ 2/12] RUN mkdir /app                                                                                                                                                                                                               0.2s
 => [ 3/12] WORKDIR /app                                                                                                                                                                                                                 0.0s
 => [ 4/12] COPY square_primary_certificate_authority_g2.crt /usr/local/share/ca-certificates/                                                                                                                                           0.0s
 => [ 5/12] COPY square_service_authority_g2.crt /usr/local/share/ca-certificates/                                                                                                                                                       0.0s
 => [ 6/12] RUN update-ca-certificates                                                                                                                                                                                                   0.9s
 => [ 7/12] RUN apt-get update -qq     && apt-get install -y build-essential nodejs libarchive-dev libpq-dev        postgresql-client cmake tidy git     && apt-get clean                                                               19.3s
 => [ 8/12] COPY Gemfile* /app/                                                                                                                                                                                                          0.1s
 => [ 9/12] RUN gem update --system                                                                                                                                                                                                      7.8s
 => [10/12] RUN gem install bundler --version '>= 1.16.1' --conservative                                                                                                                                                                 1.3s
 => ERROR [11/12] RUN bundle install                                                                                                                                                                                                     0.2s
------
 > [11/12] RUN bundle install:
#16 0.236 /usr/local/lib/ruby/site_ruby/2.4.0/rubygems.rb:278:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /app/Gemfile.lock. (Gem::GemNotFoundException)
#16 0.236 To update to the latest version installed on your system, run `bundle update --bundler`.
#16 0.236 To install the missing version, run `gem install bundler:1.17.3`
#16 0.236 	from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems.rb:297:in `activate_bin_path'
#16 0.236 	from /usr/local/bundle/bin/bundle:23:in `<main>'
------
executor failed running [/bin/sh -c bundle install]: exit code: 1
ERROR: Service 'worker' failed to build : Build failed

The version I tried: 1225545e4db6d91a9f58665cccb105c3f69317e4
System: macOS Big Sure 11.5.1
docker-compose version: 1.29.2, build 5becea4c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions