Skip to content

Instantly share code, notes, and snippets.

@artemgordinskiy
Last active December 24, 2015 11:22
Show Gist options
  • Save artemgordinskiy/1e6c17dfd5f60cc3e963 to your computer and use it in GitHub Desktop.
Save artemgordinskiy/1e6c17dfd5f60cc3e963 to your computer and use it in GitHub Desktop.
Run PHP inside Docker inside CodeRunner
// enter this in the "Run Command" field in CodeRunner preferences
eval "$(docker-machine env default)" && docker run --rm php:7.0.1-cli php -r "$(sed 's/^<\?php//' $filename)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment