Skip to content

Instantly share code, notes, and snippets.

@jtomson
Created November 23, 2020 21:07
Show Gist options
  • Save jtomson/8454f7971bbdcb60c3045d62d738be81 to your computer and use it in GitHub Desktop.
Save jtomson/8454f7971bbdcb60c3045d62d738be81 to your computer and use it in GitHub Desktop.
work around rubymine issue RUBY-26305
#!/usr/bin/ruby
# workaround for https://youtrack.jetbrains.com/issue/RUBY-26305
# save this wrapper script, make it executable, and set it as the docker-compose executable for RubyMine
# Build, Execution, Deployment -> Docker -> Tools
override_path = ARGV.select { |arg| arg =~ /.*override.*yml/ }.first
if override_path
override_data = File.read(override_path)
File.write(override_path, override_data.gsub(/\$\/'"/, %q($$/'")))
end
exec 'docker-compose', *ARGV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment