Skip to content

Instantly share code, notes, and snippets.

@akostylev0
Created November 22, 2016 16:26
Show Gist options
  • Save akostylev0/0e7eaea0154d59012d4c747a255ef8f8 to your computer and use it in GitHub Desktop.
Save akostylev0/0e7eaea0154d59012d4c747a255ef8f8 to your computer and use it in GitHub Desktop.
php shim for phpstorm
#!/usr/bin/env bash
cd `dirname $0`
DIR="/your/work/dir"
exec docker run --env XDEBUG_CONFIG="$XDEBUG_CONFIG" -w="$DIR" --net="host" --rm -v /tmp:/tmp -v "$DIR":"$DIR" \
your-php-image-name php "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment