Docker development environment improvements #5735
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is a collection of fixes and quality of life improvements related to running the specs in Docker (specifically on an ARM based Mac). This includes some fixes from @kennyadsl in #5523. Special thanks to @stewart and @forkata for helping me work on this issue.
To test this PR, run these commands:
docker-compose build --build-arg RUBY_VERSION=3.1 app
docker-compose up -d
docker-compose exec app env DB=postgres bin/rspec
I would also like to draw some attention to the removal of the
webdrivers
gem here. I believe this is the right thing to do because the project is deprecated and we're on a version of selenium that supports managing it's own drivers with selenium-manager, but I do worry some developers could be unintentionally impacted here, so I'm curious what others think.Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: