-
Notifications
You must be signed in to change notification settings - Fork 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
Add Windows compatibility and Docker setup; Upgraded README.md file #307
Conversation
…r setup Upgraded README.md file Added support for Windows system by including different versions of dependencies in Gemfile. Also introduced Docker setup to the project via a docker-compose file for easy setup and environment consistency. Files for Windows-specific development workflow and a Docker setup guide were also added to the README. Lastly, a .gitignore update included to ignore files from JetBrains products and Docker's PostgreSQL volume data.
Signed-off-by: Yehor Brodskiy <[email protected]>
I'm concerned at the complexity this is introducing (and potential maintenance burden). But having everyone being able to contribute is also important. I think this addresses the segment of "windows users who use jetbrains ide's" but unsure if this is worthy of introducing a third way (after wsl/*nix and devcontainer support). (devcontainer can run on the command line and doesn't require an IDE, you can use whatever ide/code editor you like). Is there a away this could be addressed for those that prefer this combo (and would be used to the setup challenges it has) with a readme/wiki entry? |
Hey @robzolkos !
Is definitially yes. But if you are talking about changes inside Gemfile.lock, here is no way omitting of changing this file (maybe just not staging it, which is not really technically correct). |
No I agree the Gemfile lock changes should be there to allow installing gems on windows. A couple more questions: 1/ For clarity - this is for peeps not using WSL correct? |
Yep.
Second docker-compose file is really ambiguous, you're totally right! I did second one since |
We can update the docker-compose.yml file in the .devcontainers folder with That clears up the need to have another docker-compose file introduced. The remaining changes are ok and won't be a maintenance nightmare going forward I don't think. (aside: I don't use Windows but its surprising to me that windows needs all this extra cruft - I think most rails development happens in WSL nowadays). |
Hey @yeskiy, thanks for the setup here, I'm definitely in favor of making it easy for Windows devs to contribute. Per @robzolkos comments, I'm a little worried that we're adding too many options for getting the project started this early on. Just curious, is not using WSL just a personal preference? Or did you run into some issues with it? |
…mpose The root-level docker-compose.yaml file has been deleted as it was redundant. The docker-compose file within the .devcontainer directory has been updated to allow for specific versioning of the Redis and Postgres images.
Hey @zachgoll! P.S. @robzolkos did your requested change related to |
Hey @yeskiy, I've opened a PR that addresses various setup related issues - #339 I also created a guide for getting started with Windows development. Ultimately, we'd like to stick with WSL as our recommendation for building with Windows since that closely mirrors our production environment and is what we think is the most common ways to run a Rails app on Windows. Would you mind taking a read through that guide and letting me know if/where you get stuck? |
Closing this out as we now have a Windows Setup guide and updated README for local dev: https://github.com/maybe-finance/maybe/wiki/Windows-Dev-Setup-Guide To keep things simple for new contributors, we're recommending the WSL approach to running on Windows. If any updates need to be made to the existing guide just let me know here in a comment and I'll get them added! |
Resolves #306; Add Windows compatibility and Docker setup Upgraded README.md file
Added support for Windows system by including different versions of dependencies in
Gemfile
. Also introduced Docker setup to the project via a docker-compose file for easy setup and environment consistency. Files for Windows-specific development workflow and a Docker setup guide were also added to the README. Lastly, a .gitignore update included to ignore files from JetBrains products and Docker's PostgreSQL volume data.