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

Multi ruby devcontainer setup #2568

Merged
merged 4 commits into from
Mar 6, 2025
Merged

Conversation

solnic
Copy link
Collaborator

@solnic solnic commented Feb 27, 2025

I struggled a lot when switching between rubies to test things out / fix specs etc. so I ended up with a devcontainer setup that allows me to easily switch to a specific ruby version in VS Code.

I figured I could share this here because it may turn out to be useful for others.

The reason why this is based on devcontainers is simple - we support too many rubies that have conflicting dependencies. I could not use rvm or any other Ruby version manager to easily switch between super old crubies or jruby.

Furthermore, I think we could have a nice setup with relay running as a docker service which can really help with figuring things out with envelopes etc.

#skip-changelog

@solnic solnic force-pushed the solnic/multi-ruby-devcontainer-setup branch from b51ff06 to 78907d1 Compare February 28, 2025 11:58
@solnic solnic marked this pull request as ready for review February 28, 2025 11:58
Copy link
Collaborator

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

I think this is an interesting idea. Can you also describe the process you use to switch between Rubies with this setup? I think it's probably worth documented in CONTRIBUTING.md?

@solnic solnic force-pushed the solnic/multi-ruby-devcontainer-setup branch 2 times, most recently from b9ed90e to 5a818c5 Compare March 4, 2025 14:03
@solnic
Copy link
Collaborator Author

solnic commented Mar 4, 2025

I think this is an interesting idea. Can you also describe the process you use to switch between Rubies with this setup? I think it's probably worth documented in CONTRIBUTING.md?

@st0012 I updated the CONTRIBUTING file - would you mind checking out this branch and seeing if you can get up and running with the devcontainer?

Copy link
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

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

I don't use vscode but totally okay with merging in a better tooling experience.
I'll also try to see if I can use these without vscode.

@solnic solnic force-pushed the solnic/multi-ruby-devcontainer-setup branch from 5a818c5 to 371a5c1 Compare March 6, 2025 10:45
@solnic solnic merged commit ca4a6d2 into master Mar 6, 2025
134 checks passed
@solnic solnic deleted the solnic/multi-ruby-devcontainer-setup branch March 6, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants