Why is bundler running on my docker project?

I am trying to set up a docker-compose build and while the project is a ruby/rails project I don’t want the build to run bundler.

For some reason it keeps running bundle install
The command "eval bundle install --jobs=3 --retry=3 --deployment " failed.

Here is my current travis.yml configuration.

sudo: required

services:
  - docker

addons:
  apt:
    packages:
      - docker-ce

before_script:
  - set > .env
  - docker volume create server-data
  - sudo useradd --create-home --shell /usr/sbin/nologin --uid 1000 --user-group ruby
  - sudo chown ruby:ruby *
  - sudo chown ruby:ruby .*
  - sudo docker-compose build
  - sudo docker-compose up -d

script:
  - docker-compose exec web bundle exec rubocop
  - docker-compose exec web bundle exec rake test

after_script:
  - docker-compose down
  - docker volume rm server-data

And I see this:

$ bundle --version
210/home/travis/.rvm/rubies/ruby-2.4.5/lib/ruby/site_ruby/2.4.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (2.1.4) required by your /home/travis/build/livefront/automation-server/Gemfile.lock. (Gem::GemNotFoundException)
211To update to the latest version installed on your system, run `bundle update --bundler`.
212To install the missing version, run `gem install bundler:2.1.4`
213	from /home/travis/.rvm/rubies/ruby-2.4.5/lib/ruby/site_ruby/2.4.0/rubygems.rb:303:in `activate_bin_path'
214	from /home/travis/.rvm/rubies/ruby-2.4.5/bin/bundle:23:in `<main>'
215	from /home/travis/.rvm/rubies/ruby-2.4.5/bin/ruby_executable_hooks:24:in `eval'
216	from /home/travis/.rvm/rubies/ruby-2.4.5/bin/ruby_executable_hooks:24:in `<main>'
217$ gem --version
2183.0.8
219
2203.20s$ bundle install --jobs=3 --retry=3 --deployment
221/home/travis/.rvm/rubies/ruby-2.4.5/lib/ruby/site_ruby/2.4.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (2.1.4) required by your /home/travis/build/livefront/automation-server/Gemfile.lock. (Gem::GemNotFoundException)
222To update to the latest version installed on your system, run `bundle update --bundler`.
223To install the missing version, run `gem install bundler:2.1.4`
224	from /home/travis/.rvm/rubies/ruby-2.4.5/lib/ruby/site_ruby/2.4.0/rubygems.rb:303:in `activate_bin_path'
225	from /home/travis/.rvm/rubies/ruby-2.4.5/bin/bundle:23:in `<main>'
226	from /home/travis/.rvm/rubies/ruby-2.4.5/bin/ruby_executable_hooks:24:in `eval'
227	from /home/travis/.rvm/rubies/ruby-2.4.5/bin/ruby_executable_hooks:24:in `<main>'
228
229The command "eval bundle install --jobs=3 --retry=3 --deployment " failed. Retrying, 2 of 3.

I’ve tried adding language: minimal, not including the .ruby-* files and still get the same result.

How to I keep travis from running bundle install or anything ruby related?

Thanks,
John

Turns out language: minimal does work. I could have sworn I had done that before.

I hope this helps others.


sudo: required

services:
  - docker

addons:
  apt:
    packages:
      - docker-ce

before_script:
  - set > .env
  - docker volume create server-data
  - sudo useradd --create-home --shell /usr/sbin/nologin --uid 1000 --user-group ruby
  - sudo chown ruby:ruby *
  - sudo chown ruby:ruby .*
  - sudo docker-compose build
  - sudo docker-compose up -d

script:
  - docker-compose exec web bundle exec rubocop
  - docker-compose exec web bundle exec rake test

after_script:
  - docker-compose down
  - docker volume rm server-data