Configuring Remote Interpreters using Docker Compose
To configure a remote interpreter using Docker Compose, you need a running Docker container(s) with the Ruby interpreter(s) installed. Perform the following steps to do this:
Open the Settings/Preferences dialog (Ctrl+Alt+S), go to the Language & Frameworks | Ruby SDK and Gems page.
Click the and select New remote… in the drop-down:
- In the invoked dialog, select Docker Compose and specify the following options:
Server - Specify a Docker server used to run a required container. You can use the New… button to create a new Docker server.
Configuration file - Provide a path to the Docker Compose configuration file.
Service - Choose a service that runs the required Docker image.
Environment variables - Enables you to specify environment variables.
Ruby or version manager path - Here you should specify the path to the Ruby interpreter or the version manager executable.
(Optional) If you specified a path to the version manager executable in the previous dialog, RubyMine suggests you select the Ruby interpreter used to run a remote application.
Select the added SDK in the Ruby SDK and Gems page.
(Optional) If you want to use the added SDK to debug a remote process, specify mappings between files of a local and remote project. To do this, click the Edit Path Mappings button. In the Edit Project Path Mappings dialog, specify the local and remote project root paths.