-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker development environment improvements #5735
Conversation
0d8f4cf
to
6ec7c88
Compare
6ec7c88
to
3ac5aff
Compare
The `buster` image is quite old and creates some challenges on newer ARM based Mac's, so we update to `bookworm`. To put this into context, this takes us from a Debian release in Sept 2019 to June 2023. Co-authored-by: An Stewart <[email protected]> Co-authored-by: Chris Todorov <[email protected]> Co-authored-by: Alberto Vena <[email protected]> Co-authored-by: Thomas von Deyen <[email protected]>
This gem has gone end-of-life and we're using a version of Selenium that supports Selenium manager, so there is no reason to keep this gem around. Read more here: https://github.com/titusfortner/webdrivers/blob/44d4c1ae865d0acd30613313b8c67a16711249ac/README.md#update-future-of-this-project Co-authored-by: An Stewart <[email protected]>
Prior to increasing the shared memory size or `shm_size`, we received errors trying to run feature specs due to lack of memory. Co-authored-by: An Stewart <[email protected]>
3ac5aff
to
1f6b107
Compare
Hey @tvdeyen I pushed an update that uses |
Amazing. Thanks for working on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
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: