RubyMine cannot find Gem binaries for Docker Compose remote
I have a working docker compose set up. But when trying to use this as my working remote for development (through Preferences, Languages & Framework, Ruby SDK and Gems", New remote.., Docker Compose) after a couple of "Docker Compose Up" notifications, it fails with "Can't create Ruby SDK, Could not find gems binaries directory".
What to do? Is there a way to specify a directory somehow?
请先登录再写评论。
I have found the solution!
«If you are configuring a remote interpreter using rbenv version manager, you have to specify ruby executable located under the directory versions, rather than shims».
I found the solution!!
In my Dockerfile I had:
That allowed me to do
to start the server, but broke Rubymine. Now, I removed the entryPoint in my Dockerfile and changed the command for my app to:
..and I am able to add my Docker Compose as a remote!! :D
@Dfediuk, thanks for your suggestion anyways! However, for me it did not work unfortunately.
Hello,
Thanks a lot for your investigation, somehow this option influenced on our integration with Docker. So we need also investigate here. But for sure this is a bug, please vote https://youtrack.jetbrains.com/issue/RUBY-20710.
You could create custom docker-compose.dev.yml file with the only service named as the target service from original docker-compose.yml and set its entrypoint to an empty list;
Then add docker-compose.dev.yml after original docker-compose.yml when adding Remote Ruby Interpreter
In this case every run from terminal will be with entrypoint from docker-compose.yml. And Rubymine will be able to run any command in your container.