Skip to content

Conversation

@zetter-rpf
Copy link
Contributor

@zetter-rpf zetter-rpf commented Feb 12, 2026

Jamie had an issue running and building the new docker file that might affect other people likely caused by #668

I can't reproduce this myself and I didn't have this problem when upgrading ruby so I wonder if it's caused by earlier versions of bundler or binstubs in the shared folder. The base docker image was changed so the only state that I think could be affecting it is in the shared bundler volume set up by docker compose.

Modern versions of bundler will install the bundler version specified in the gemfile automatically, 2.x was the version version to do this so maybe there were some teething issues that are now fixed.

Original error:

api-1   | Activating bundler (~> 4.0) failed:
api-1   | Could not find 'bundler' (~> 4.0) - did find: [bundler-2.7.2,bundler-2.6.9]
api-1   | Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.4.0:/usr/local/lib/ruby/gems/3.4.0:/usr/local/bundle' , execute `gem env` for more information
api-1   |
api-1   | To install the version of bundler this project requires, run `gem install bundler -v '~> 4.0'`

Jamie had an issue running and building the new docker file that might affect other people.

I can't reproduce this myself and I didn't have this problem when upgrading ruby so I wonder if it's caused by earlier versions of bundler or binstubs in the shared folder.

Modern versions of bundler will install the bundler version specified in the gemfile automatically, 2.x was the version version to do this so maybe there were some teething issues that are now fixed.

```
api-1   | Activating bundler (~> 4.0) failed:
api-1   | Could not find 'bundler' (~> 4.0) - did find: [bundler-2.7.2,bundler-2.6.9]
api-1   | Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.4.0:/usr/local/lib/ruby/gems/3.4.0:/usr/local/bundle' , execute `gem env` for more information
api-1   |
api-1   | To install the version of bundler this project requires, run `gem install bundler -v '~> 4.0'`
```
@cla-bot cla-bot bot added the cla-signed label Feb 12, 2026
@zetter-rpf zetter-rpf marked this pull request as ready for review February 12, 2026 11:36
Copilot AI review requested due to automatic review settings February 12, 2026 11:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses Docker build issues that occurred after the Ruby and Bundler upgrade in PR #668. The issue manifested as bundler version conflicts where the container couldn't find the required bundler version (~> 4.0) because an older version was cached in the shared Docker volume.

Changes:

  • Renamed the Docker volume from bundle-data to bundle-data-v2 to invalidate stale bundler cache from the previous Ruby environment

Copy link
Contributor

@mwtrew mwtrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't reproduce it myself, but I agree that was probably the issue and that this should fix it.

@zetter-rpf zetter-rpf merged commit f98efd9 into main Feb 13, 2026
12 checks passed
@zetter-rpf zetter-rpf deleted the cache-bust-bundle-data-to-fix-docker-builds branch February 13, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants