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

Using with docker #27

Open
belarba opened this issue Apr 17, 2024 · 2 comments
Open

Using with docker #27

belarba opened this issue Apr 17, 2024 · 2 comments

Comments

@belarba
Copy link

belarba commented Apr 17, 2024

Hello

is it possible to run in a project with docker?

In my case I'd need just to add this to the beginning of command:

dc-test run --rm api bin/rspec {spec_file.rb}

@westonkd
Copy link
Contributor

westonkd commented Jan 6, 2025

FYI I opened #57 as one possible approach to handling this issue

@westonkd
Copy link
Contributor

westonkd commented Feb 4, 2025

👋 FYI #57 was merged and helps with the Docker story in a few ways.

First, some clarification on the Ruby LSP supported container development setup (dev containers).

Running the Ruby LSP extension within the dev container will help with issues where the spec path given to rspec is the path on the host machine rather than within the container.

Second, this change adds support for customizing the rspec command.

If you have a unique setup where running Ruby LSP extension within the dev container is not enough, you can further customize.

For example, I have one project I work on where I need to do the following to make sure I'm using the right rspec executable within a container (it's a long story):

"rubyLsp.addonSettings": {
    "Ruby LSP RSpec": {
        "debug": true,
        "rspecCommand": "cd /usr/src/app && rspec"
    }
},

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

No branches or pull requests

2 participants