Skip to content
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

Merged
merged 3 commits into from
May 3, 2024

Conversation

nvandoorn
Copy link
Contributor

@nvandoorn nvandoorn commented May 1, 2024

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:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@nvandoorn nvandoorn requested a review from a team as a code owner May 1, 2024 22:10
@github-actions github-actions bot added changelog:solidus_backend Changes to the solidus_backend gem changelog:repository Changes to the repository not within any gem changelog:solidus_admin labels May 1, 2024
@nvandoorn nvandoorn force-pushed the 5523-fix-docker-specs branch 3 times, most recently from 0d8f4cf to 6ec7c88 Compare May 1, 2024 22:28
.dockerdev/Dockerfile Outdated Show resolved Hide resolved
nvandoorn and others added 3 commits May 2, 2024 21:32
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]>
@nvandoorn
Copy link
Contributor Author

Hey @tvdeyen I pushed an update that uses slim-bookworm. All seems to still work well. Thanks for the review and suggestions.

@tvdeyen
Copy link
Member

tvdeyen commented May 3, 2024

Hey @tvdeyen I pushed an update that uses slim-bookworm. All seems to still work well. Thanks for the review and suggestions.

Amazing. Thanks for working on this.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks

@kennyadsl kennyadsl merged commit fdc5e1c into solidusio:main May 3, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:repository Changes to the repository not within any gem changelog:solidus_admin changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants