Created
November 23, 2020 21:07
-
-
Save jtomson/8454f7971bbdcb60c3045d62d738be81 to your computer and use it in GitHub Desktop.
work around rubymine issue RUBY-26305
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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